mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-02-04 02:51:18 +01:00
like this? (hopefully i dont work coding, otherwise I would starve to death at this point)
This commit is contained in:
@@ -1628,9 +1628,15 @@ JNIEXPORT jobjectArray JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_checkForUpd
|
||||
const std::optional<UpdateChecker::Update> release =
|
||||
UpdateChecker::GetLatestRelease(is_prerelease);
|
||||
|
||||
if (!release || release->tag.substr(release->tag.find('.') + 1, 10) == std::string(Common::g_build_version).substr(0, 10)) {
|
||||
#ifdef NIGHTLY_BUILD
|
||||
if (release->tag.substr(release->tag.find('.') + 1, 10) == std::string(Common::g_build_version).substr(0, 10)) {
|
||||
return nullptr;
|
||||
}
|
||||
#else
|
||||
if (!release || release->tag == Common::g_build_version) {
|
||||
return nullptr;
|
||||
}
|
||||
#endif
|
||||
|
||||
const std::string tag = release->tag;
|
||||
const std::string name = release->name;
|
||||
|
||||
@@ -523,9 +523,15 @@ MainWindow::MainWindow(bool has_broken_vulkan)
|
||||
(strstr(Common::g_build_version, "rc") != NULL));
|
||||
const std::optional<UpdateChecker::Update> latest_release_tag =
|
||||
UpdateChecker::GetLatestRelease(is_prerelease);
|
||||
#ifdef NIGHTLY_BUILD
|
||||
if (latest_release_tag->tag.substr(latest_release_tag->tag.find('.') + 1, 10) != std::string(Common::g_build_version).substr(0, 10)) {
|
||||
return latest_release_tag.value();
|
||||
}
|
||||
#else
|
||||
if (latest_release_tag && latest_release_tag->tag != Common::g_build_version) {
|
||||
return latest_release_tag.value();
|
||||
}
|
||||
#endif
|
||||
return UpdateChecker::Update{};
|
||||
});
|
||||
update_watcher.connect(&update_watcher, &QFutureWatcher<QString>::finished, this,
|
||||
|
||||
Reference in New Issue
Block a user