Use placeholders for serialized paths

This commit is contained in:
Hamish Milne 2020-04-05 00:20:59 +01:00
parent 74c06bd13e
commit b5f394dd12
3 changed files with 36 additions and 1 deletions

View file

@ -214,6 +214,7 @@ System::ResultStatus System::SingleStep() {
}
System::ResultStatus System::Load(Frontend::EmuWindow& emu_window, const std::string& filepath) {
FileUtil::SetCurrentRomPath(filepath);
app_loader = Loader::GetLoader(filepath);
if (!app_loader) {
LOG_CRITICAL(Core, "Failed to obtain loader for {}!", filepath);