remove titleid req. from patches asm

Co-authored-by: Luminyx <79218624+Luminyx1@users.noreply.github.com>
This commit is contained in:
jhmaster2000 2026-02-07 02:41:31 -03:00
parent 9ec02dfd6e
commit 1631e1110d
2 changed files with 3 additions and 3 deletions

View File

@ -172,7 +172,7 @@ void GraphicPack2::ApplyPatchesForModule(const RPLModule* rpl)
std::vector<PatchGroup*> list_groups; std::vector<PatchGroup*> list_groups;
for (auto itr : list_patchGroups) for (auto itr : list_patchGroups)
{ {
if (itr->matchesCRC(rpl->patchCRC)) if (m_universal || itr->matchesCRC(rpl->patchCRC))
list_groups.emplace_back(itr); list_groups.emplace_back(itr);
} }
// apply all groups at once // apply all groups at once
@ -188,7 +188,7 @@ void GraphicPack2::RevertPatchesForModule(const RPLModule* rpl)
std::vector<PatchGroup*> list_groups; std::vector<PatchGroup*> list_groups;
for (auto itr : list_patchGroups) for (auto itr : list_patchGroups)
{ {
if (itr->matchesCRC(rpl->patchCRC)) if (m_universal || itr->matchesCRC(rpl->patchCRC))
list_groups.emplace_back(itr); list_groups.emplace_back(itr);
} }
// undo all groups at once // undo all groups at once

View File

@ -41,7 +41,7 @@ void GraphicPack2::CancelParsingPatches()
void GraphicPack2::AddPatchGroup(PatchGroup* group) 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)); LogPatchesSyntaxError(-1, fmt::format("Group \"{}\" has no moduleMatches definition", group->name));
CancelParsingPatches(); CancelParsingPatches();