UI: Display messages when loading roms/patches
This commit is contained in:
parent
2dd3d1980d
commit
7e011d822e
2 changed files with 7 additions and 1 deletions
|
@ -25,7 +25,9 @@ shared_ptr<BaseCartridge> BaseCartridge::CreateCartridge(VirtualFile &romFile, V
|
|||
shared_ptr<BaseCartridge> cart(new BaseCartridge());
|
||||
if(patchFile.IsValid()) {
|
||||
cart->_patchPath = patchFile;
|
||||
romFile.ApplyPatch(patchFile);
|
||||
if(romFile.ApplyPatch(patchFile)) {
|
||||
MessageManager::DisplayMessage("Patch", "ApplyingPatch", patchFile.GetFileName());
|
||||
}
|
||||
}
|
||||
|
||||
vector<uint8_t> romData;
|
||||
|
|
|
@ -270,6 +270,10 @@ bool Console::LoadRom(VirtualFile romFile, VirtualFile patchFile, bool stopRom)
|
|||
_paused = false;
|
||||
_notificationManager->SendNotification(ConsoleNotificationType::GameLoaded);
|
||||
|
||||
string modelName = _region == ConsoleRegion::Pal ? "PAL" : "NTSC";
|
||||
string messageTitle = MessageManager::Localize("GameLoaded") + " (" + modelName + ")";
|
||||
MessageManager::DisplayMessage(messageTitle, FolderUtilities::GetFilename(GetRomInfo().RomFile.GetFileName(), false));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue