mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 11:13:44 +01:00
Logging API change (refactor) (#19324)
* Rename LogType to Log * Explicitly use the Log:: enum when logging. Allows for autocomplete when editing. * Mac/ARM64 buildfix * Do the same with the hle result log macros * Rename the log names to mixed case while at it. * iOS buildfix * Qt buildfix attempt, ARM32 buildfix
This commit is contained in:
1 parent
ae3ff686f0
commit
e01ca5b057
393 files changed
+6198
-6193
No files matched your search
@@ -84,11 +84,11 @@ bool UIScreen::key(const KeyInput &key) {
|
||||
|
||||
bool UIScreen::UnsyncTouch(const TouchInput &touch) {
|
||||
if (ClickDebug && root_ && (touch.flags & TOUCH_DOWN)) {
|
||||
INFO_LOG(SYSTEM, "Touch down!");
|
||||
INFO_LOG(Log::System, "Touch down!");
|
||||
std::vector<UI::View *> views;
|
||||
root_->Query(touch.x, touch.y, views);
|
||||
for (auto view : views) {
|
||||
INFO_LOG(SYSTEM, "%s", view->DescribeLog().c_str());
|
||||
INFO_LOG(Log::System, "%s", view->DescribeLog().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,11 +167,11 @@ void UIScreen::update() {
|
||||
break;
|
||||
case QueuedEventType::TOUCH:
|
||||
if (ClickDebug && (ev.touch.flags & TOUCH_DOWN)) {
|
||||
INFO_LOG(SYSTEM, "Touch down!");
|
||||
INFO_LOG(Log::System, "Touch down!");
|
||||
std::vector<UI::View *> views;
|
||||
root_->Query(ev.touch.x, ev.touch.y, views);
|
||||
for (auto view : views) {
|
||||
INFO_LOG(SYSTEM, "%s", view->DescribeLog().c_str());
|
||||
INFO_LOG(Log::System, "%s", view->DescribeLog().c_str());
|
||||
}
|
||||
}
|
||||
touch(ev.touch);
|
||||
@@ -262,7 +262,7 @@ bool UIDialogScreen::key(const KeyInput &key) {
|
||||
bool retval = UIScreen::key(key);
|
||||
if (!retval && (key.flags & KEY_DOWN) && UI::IsEscapeKey(key)) {
|
||||
if (finished_) {
|
||||
ERROR_LOG(SYSTEM, "Screen already finished");
|
||||
ERROR_LOG(Log::System, "Screen already finished");
|
||||
} else {
|
||||
finished_ = true;
|
||||
TriggerFinish(DR_BACK);
|
||||
|
||||
Reference in new issue
Block a user