Browse Source
like this? (hopefully i dont work coding, otherwise I would starve to death at this point)
fixup-android
Caio Oliveira
1 week ago
No known key found for this signature in database
GPG Key ID: AAAE6C7FD4186B0C
2 changed files with
13 additions and
1 deletions
-
src/android/app/src/main/jni/native.cpp
-
src/yuzu/main_window.cpp
|
|
|
@ -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, |
|
|
|
|