Fix ccrash if remote is not set (#2291)

This commit is contained in:
kalaposfos13
2025-01-30 23:14:13 +01:00
committed by GitHub
parent b5d63a31cc
commit be74f65864
3 changed files with 14 additions and 6 deletions

View File

@@ -58,7 +58,8 @@ bool MainWindow::Init() {
window_title = fmt::format("shadPS4 v{}", Common::VERSION);
} else {
std::string remote_url(Common::g_scm_remote_url);
if (remote_url == "https://github.com/shadps4-emu/shadPS4.git") {
if (remote_url == "https://github.com/shadps4-emu/shadPS4.git" ||
remote_url.length() == 0) {
window_title = fmt::format("shadPS4 v{} {} {}", Common::VERSION, Common::g_scm_branch,
Common::g_scm_desc);
} else {