mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Logging improvements / despam
This commit is contained in:
@@ -44,15 +44,22 @@ ScreenManager::~ScreenManager() {
|
||||
void ScreenManager::switchScreen(Screen *screen) {
|
||||
// TODO: inputLock_ ?
|
||||
|
||||
INFO_LOG(Log::UI, "ScreenManager::switchScreen('%s')", screen->tag());
|
||||
|
||||
if (!nextStack_.empty() && screen == nextStack_.front().screen) {
|
||||
ERROR_LOG(Log::UI, "Already switching to this screen");
|
||||
return;
|
||||
}
|
||||
|
||||
// Note that if a dialog is found, this will be a silent background switch that
|
||||
// will only become apparent if the dialog is closed. The previous screen will stick around
|
||||
// until that switch.
|
||||
// TODO: is this still true?
|
||||
if (!nextStack_.empty()) {
|
||||
for (int i = 0; i < nextStack_.size(); i++) {
|
||||
INFO_LOG(Log::UI, "NextStack contents[%d].screen->tag(): '%s'", i, nextStack_[i].screen->tag());
|
||||
}
|
||||
|
||||
ERROR_LOG(Log::UI, "Already had a nextStack_! Asynchronous open while doing something? Deleting the new screen.");
|
||||
delete screen;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user