added branch name into sdl window title

This commit is contained in:
georgemoralis 2024-09-19 17:46:23 +03:00
parent 18659ec01c
commit e358ba032d

View File

@ -141,8 +141,8 @@ void Emulator::Run(const std::filesystem::path& file) {
if (Common::isRelease) {
window_title = fmt::format("shadPS4 v{} | {}", Common::VERSION, game_title);
} else {
window_title =
fmt::format("shadPS4 v{} {} | {}", Common::VERSION, Common::g_scm_desc, game_title);
window_title = fmt::format("shadPS4 v{} {} {} | {}", Common::VERSION, Common::g_scm_branch,
Common::g_scm_desc, game_title);
}
window = std::make_unique<Frontend::WindowSDL>(
Config::getScreenWidth(), Config::getScreenHeight(), controller, window_title);