mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-23 07:44:18 +00:00
...
This commit is contained in:
parent
3092d2274f
commit
7fc2b0f93d
|
|
@ -900,7 +900,7 @@ std::vector<Patch> PatchManager::GetPatches(VirtualFile update_raw) const {
|
||||||
const auto mod_dir = fs_controller.GetModificationLoadRoot(title_id);
|
const auto mod_dir = fs_controller.GetModificationLoadRoot(title_id);
|
||||||
const auto sdmc_mod_dir = fs_controller.GetSDMCModificationLoadRoot(title_id);
|
const auto sdmc_mod_dir = fs_controller.GetSDMCModificationLoadRoot(title_id);
|
||||||
|
|
||||||
for (const VirtualDir& root : {mod_dir, sdmc_mod_dir}) {
|
for (const auto& root : std::array{mod_dir, sdmc_mod_dir}) {
|
||||||
if (root == nullptr)
|
if (root == nullptr)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
@ -947,7 +947,7 @@ std::vector<Patch> PatchManager::GetPatches(VirtualFile update_raw) const {
|
||||||
AppendCommaIfNotEmpty(types, "Cheats");
|
AppendCommaIfNotEmpty(types, "Cheats");
|
||||||
}
|
}
|
||||||
if (has_cheats && is_sdmc)
|
if (has_cheats && is_sdmc)
|
||||||
mod_name = "Atmosphère Cheats";
|
mod_name = "Atmosphere";
|
||||||
|
|
||||||
if (types.empty())
|
if (types.empty())
|
||||||
continue;
|
continue;
|
||||||
|
|
@ -980,7 +980,8 @@ std::vector<Patch> PatchManager::GetPatches(VirtualFile update_raw) const {
|
||||||
if (cheat.cheat_id <= 1 || cheat.definition.readable_name[0] == '\0')
|
if (cheat.cheat_id <= 1 || cheat.definition.readable_name[0] == '\0')
|
||||||
continue;
|
continue;
|
||||||
const std::string cheat_name = cheat.definition.readable_name.data();
|
const std::string cheat_name = cheat.definition.readable_name.data();
|
||||||
const std::string cheat_key = mod_name + "::" + cheat_name;
|
const std::string cheat_key =
|
||||||
|
(is_sdmc ? "SDMC" : mod->GetName()) + "::" + cheat_name;
|
||||||
out.push_back({
|
out.push_back({
|
||||||
.enabled = std::find(disabled.begin(), disabled.end(), cheat_key) ==
|
.enabled = std::find(disabled.begin(), disabled.end(), cheat_key) ==
|
||||||
disabled.end(),
|
disabled.end(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue