From 1631e1110d3def5e85e79fe1371d15711e84c627 Mon Sep 17 00:00:00 2001 From: jhmaster2000 <32803471+jhmaster2000@users.noreply.github.com> Date: Sat, 7 Feb 2026 02:41:31 -0300 Subject: [PATCH] remove titleid req. from patches asm Co-authored-by: Luminyx <79218624+Luminyx1@users.noreply.github.com> --- src/Cafe/GraphicPack/GraphicPack2Patches.cpp | 4 ++-- src/Cafe/GraphicPack/GraphicPack2PatchesParser.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Cafe/GraphicPack/GraphicPack2Patches.cpp b/src/Cafe/GraphicPack/GraphicPack2Patches.cpp index d0d00bf2..880f1682 100644 --- a/src/Cafe/GraphicPack/GraphicPack2Patches.cpp +++ b/src/Cafe/GraphicPack/GraphicPack2Patches.cpp @@ -172,7 +172,7 @@ void GraphicPack2::ApplyPatchesForModule(const RPLModule* rpl) std::vector list_groups; for (auto itr : list_patchGroups) { - if (itr->matchesCRC(rpl->patchCRC)) + if (m_universal || itr->matchesCRC(rpl->patchCRC)) list_groups.emplace_back(itr); } // apply all groups at once @@ -188,7 +188,7 @@ void GraphicPack2::RevertPatchesForModule(const RPLModule* rpl) std::vector list_groups; for (auto itr : list_patchGroups) { - if (itr->matchesCRC(rpl->patchCRC)) + if (m_universal || itr->matchesCRC(rpl->patchCRC)) list_groups.emplace_back(itr); } // undo all groups at once diff --git a/src/Cafe/GraphicPack/GraphicPack2PatchesParser.cpp b/src/Cafe/GraphicPack/GraphicPack2PatchesParser.cpp index 05f8c696..fb300dbb 100644 --- a/src/Cafe/GraphicPack/GraphicPack2PatchesParser.cpp +++ b/src/Cafe/GraphicPack/GraphicPack2PatchesParser.cpp @@ -41,7 +41,7 @@ void GraphicPack2::CancelParsingPatches() void GraphicPack2::AddPatchGroup(PatchGroup* group) { - if (group->list_moduleMatches.empty()) + if (group->list_moduleMatches.empty() && !m_universal) { LogPatchesSyntaxError(-1, fmt::format("Group \"{}\" has no moduleMatches definition", group->name)); CancelParsingPatches();