JANITORIAL: Last remaining RTL references

This commit is contained in:
mataniko 2020-05-11 22:27:27 -04:00 committed by Eugene Sandulenko
parent cc7b06d47a
commit 1b9fc31e2d
3 changed files with 9 additions and 9 deletions

View File

@ -137,9 +137,9 @@ void MainMenuDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, uint3
}
break;
case kLauncherCmd: {
Common::Event eventRTL;
eventRTL.type = Common::EVENT_RETURN_TO_LAUNCHER;
g_system->getEventManager()->pushEvent(eventRTL);
Common::Event eventReturnToLauncher;
eventReturnToLauncher.type = Common::EVENT_RETURN_TO_LAUNCHER;
g_system->getEventManager()->pushEvent(eventReturnToLauncher);
close();
}
break;

View File

@ -641,9 +641,9 @@ bool EventRecorder::switchMode() {
saveName = Common::String::format("Save %d", emptySlot + 1);
Common::Error status = g_engine->saveGameState(emptySlot, saveName);
if (status.getCode() == Common::kNoError) {
Common::Event eventRTL;
eventRTL.type = Common::EVENT_RETURN_TO_LAUNCHER;
g_system->getEventManager()->pushEvent(eventRTL);
Common::Event eventReturnToLauncher;
eventReturnToLauncher.type = Common::EVENT_RETURN_TO_LAUNCHER;
g_system->getEventManager()->pushEvent(eventReturnToLauncher);
}
}
ConfMan.set("record_mode", "", Common::ConfigManager::kTransientDomain);

View File

@ -122,11 +122,11 @@ OnScreenDialog::OnScreenDialog(bool isRecord) : Dialog("OnScreenDialog") {
}
void OnScreenDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) {
Common::Event eventRTL;
Common::Event eventReturnToLauncher;
switch (cmd) {
case kStopCmd:
eventRTL.type = Common::EVENT_RETURN_TO_LAUNCHER;
g_system->getEventManager()->pushEvent(eventRTL);
eventReturnToLauncher.type = Common::EVENT_RETURN_TO_LAUNCHER;
g_system->getEventManager()->pushEvent(eventReturnToLauncher);
close();
break;
case kEditCmd: