mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
Add remote fork windows title to release builds too
This commit is contained in:
parent
b5199f10f0
commit
8fa7fb3b79
@ -190,16 +190,21 @@ void Emulator::Run(const std::filesystem::path& file, const std::vector<std::str
|
|||||||
|
|
||||||
std::string game_title = fmt::format("{} - {} <{}>", id, title, app_version);
|
std::string game_title = fmt::format("{} - {} <{}>", id, title, app_version);
|
||||||
std::string window_title = "";
|
std::string window_title = "";
|
||||||
|
std::string remote_url(Common::g_scm_remote_url);
|
||||||
|
std::string remote_host;
|
||||||
|
try {
|
||||||
|
remote_host = remote_url.substr(19, remote_url.rfind('/') - 19);
|
||||||
|
} catch (...) {
|
||||||
|
remote_host = "unknown";
|
||||||
|
}
|
||||||
if (Common::g_is_release) {
|
if (Common::g_is_release) {
|
||||||
window_title = fmt::format("shadPS4 v{} | {}", Common::g_version, game_title);
|
if (remote_host == "shadps4-emu" || remote_url.length() == 0) {
|
||||||
} else {
|
window_title = fmt::format("shadPS4 v{} | {}", Common::g_version, game_title);
|
||||||
std::string remote_url(Common::g_scm_remote_url);
|
} else {
|
||||||
std::string remote_host;
|
window_title =
|
||||||
try {
|
fmt::format("shadPS4 {}/v{} | {}", remote_host, Common::g_version, game_title);
|
||||||
remote_host = remote_url.substr(19, remote_url.rfind('/') - 19);
|
|
||||||
} catch (...) {
|
|
||||||
remote_host = "unknown";
|
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
if (remote_host == "shadps4-emu" || remote_url.length() == 0) {
|
if (remote_host == "shadps4-emu" || remote_url.length() == 0) {
|
||||||
window_title = fmt::format("shadPS4 v{} {} {} | {}", Common::g_version,
|
window_title = fmt::format("shadPS4 v{} {} {} | {}", Common::g_version,
|
||||||
Common::g_scm_branch, Common::g_scm_desc, game_title);
|
Common::g_scm_branch, Common::g_scm_desc, game_title);
|
||||||
|
@ -55,16 +55,20 @@ bool MainWindow::Init() {
|
|||||||
// show ui
|
// show ui
|
||||||
setMinimumSize(720, 405);
|
setMinimumSize(720, 405);
|
||||||
std::string window_title = "";
|
std::string window_title = "";
|
||||||
|
std::string remote_url(Common::g_scm_remote_url);
|
||||||
|
std::string remote_host;
|
||||||
|
try {
|
||||||
|
remote_host = remote_url.substr(19, remote_url.rfind('/') - 19);
|
||||||
|
} catch (...) {
|
||||||
|
remote_host = "unknown";
|
||||||
|
}
|
||||||
if (Common::g_is_release) {
|
if (Common::g_is_release) {
|
||||||
window_title = fmt::format("shadPS4 v{}", Common::g_version);
|
if (remote_host == "shadps4-emu" || remote_url.length() == 0) {
|
||||||
} else {
|
window_title = fmt::format("shadPS4 v{}", Common::g_version);
|
||||||
std::string remote_url(Common::g_scm_remote_url);
|
} else {
|
||||||
std::string remote_host;
|
window_title = fmt::format("shadPS4 {}/v{}", remote_host, Common::g_version);
|
||||||
try {
|
|
||||||
remote_host = remote_url.substr(19, remote_url.rfind('/') - 19);
|
|
||||||
} catch (...) {
|
|
||||||
remote_host = "unknown";
|
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
if (remote_host == "shadps4-emu" || remote_url.length() == 0) {
|
if (remote_host == "shadps4-emu" || remote_url.length() == 0) {
|
||||||
window_title = fmt::format("shadPS4 v{} {} {}", Common::g_version, Common::g_scm_branch,
|
window_title = fmt::format("shadPS4 v{} {} {}", Common::g_version, Common::g_scm_branch,
|
||||||
Common::g_scm_desc);
|
Common::g_scm_desc);
|
||||||
|
Loading…
Reference in New Issue
Block a user