like this? (hopefully i dont work coding, otherwise I would starve to death at this point)

This commit is contained in:
Caio Oliveira
2026-01-31 21:34:05 -03:00
parent 7c01ba1de1
commit eecab0617b
2 changed files with 13 additions and 1 deletions

View File

@@ -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;

View File

@@ -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,