summaryrefslogtreecommitdiff
path: root/Source/Android
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2026-03-12 15:25:41 -0400
committerGitHub <noreply@github.com>2026-03-12 15:25:41 -0400
commit161f9e82c11ad20b10d0b79ccf567ba3a0df8d80 (patch)
tree7cc6232a811e8b2a6b92caebe106990c8af1afb0 /Source/Android
parentff84a4b07a39616379c9ffd49b22137c96b03d04 (diff)
parentd2e381090cffaa972a17be1f5b6dad7bdc12a373 (diff)
Merge pull request #14427 from Simonx22/qt/cheats-gecko-download-error-message
DolphinQt: Improve Gecko code download failure message
Diffstat (limited to 'Source/Android')
-rw-r--r--Source/Android/jni/Cheats/GeckoCheat.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Android/jni/Cheats/GeckoCheat.cpp b/Source/Android/jni/Cheats/GeckoCheat.cpp
index 276914b27b..3d123466fe 100644
--- a/Source/Android/jni/Cheats/GeckoCheat.cpp
+++ b/Source/Android/jni/Cheats/GeckoCheat.cpp
@@ -190,11 +190,10 @@ Java_org_dolphinemu_dolphinemu_features_cheats_model_GeckoCheat_downloadCodes(JN
{
const std::string gametdb_id = GetJString(env, jGameTdbId);
- bool success = true;
- const std::vector<Gecko::GeckoCode> codes = Gecko::DownloadCodes(gametdb_id, &success);
-
- if (!success)
+ const auto codes_result = Gecko::DownloadCodes(gametdb_id);
+ if (!codes_result)
return nullptr;
+ const std::vector<Gecko::GeckoCode>& codes = *codes_result;
const jobjectArray array =
env->NewObjectArray(static_cast<jsize>(codes.size()), IDCache::GetGeckoCheatClass(), nullptr);