mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 01:24:41 -06:00
remove titleid req. from patches asm
Co-authored-by: Luminyx <79218624+Luminyx1@users.noreply.github.com>
This commit is contained in:
parent
9ec02dfd6e
commit
1631e1110d
@ -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
|
||||||
|
|||||||
@ -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();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user