DolphinQt: Improve Gecko code download failure message

This commit is contained in:
Simonx22 committed 2026-03-03 11:09:39 -05:00
1 parent 1a08708a75
commit d2e381090c
4 files changed
+18 -13

No files matched your search

+3 -4
View File
@@ -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);