diff options
| author | Simonx22 <simon@oatmealdome.me> | 2026-02-28 11:12:15 -0500 |
|---|---|---|
| committer | Simonx22 <simon@oatmealdome.me> | 2026-03-03 11:09:39 -0500 |
| commit | d2e381090cffaa972a17be1f5b6dad7bdc12a373 (patch) | |
| tree | 97235cef59c37ff15f5d85383094e8fe43e7b964 /Source/Android | |
| parent | 1a08708a75f3b47540c33cc8cc07866caa4d2a3f (diff) | |
DolphinQt: Improve Gecko code download failure message
Diffstat (limited to 'Source/Android')
| -rw-r--r-- | Source/Android/jni/Cheats/GeckoCheat.cpp | 7 |
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); |
