Add check to see if we're running the right game

This commit is contained in:
kalaposfos13 2026-04-01 16:59:05 +02:00
parent 46dbc4a9c5
commit 01b2115a36

View File

@ -227,6 +227,9 @@ void Emulator::Run(std::filesystem::path file, std::vector<std::string> args,
std::quick_exit(0);
}
ASSERT(id == "CUSA00207" || id == "CUSA00208" || id == "CUSA00299" || id == "CUSA00900" ||
id == "CUSA01363" || id == "CUSA03023" || id == "CUSA03173");
LOG_INFO(Loader, "Starting shadBloodborne emulator v{} ", Common::g_version);
LOG_INFO(Loader, "Revision {}", Common::g_scm_rev);
LOG_INFO(Loader, "Branch {}", Common::g_scm_branch);
@ -341,16 +344,17 @@ void Emulator::Run(std::filesystem::path file, std::vector<std::string> args,
if (remote_host == "shadps4-emu" || remote_url.length() == 0) {
window_title = fmt::format("shadBloodborne v{} | {}", Common::g_version, game_title);
} else {
window_title =
fmt::format("shadBloodborne {}/v{} | {}", remote_host, Common::g_version, game_title);
window_title = fmt::format("shadBloodborne {}/v{} | {}", remote_host, Common::g_version,
game_title);
}
} else {
if (remote_host == "shadps4-emu" || remote_url.length() == 0) {
window_title = fmt::format("shadBloodborne v{} {} {} | {}", Common::g_version,
Common::g_scm_branch, Common::g_scm_desc, game_title);
} else {
window_title = fmt::format("shadBloodborne v{} {}/{} {} | {}", Common::g_version, remote_host,
Common::g_scm_branch, Common::g_scm_desc, game_title);
window_title =
fmt::format("shadBloodborne v{} {}/{} {} | {}", Common::g_version, remote_host,
Common::g_scm_branch, Common::g_scm_desc, game_title);
}
}
window = std::make_unique<Frontend::WindowSDL>(EmulatorSettings.GetWindowWidth(),