DiscIO/RiivolutionPatcher: Skip main.dol patches if no main.dol was given.

This commit is contained in:
Admiral H. Curtiss 2022-06-08 23:07:15 +02:00
parent fa30ba18f5
commit 9e5bc98496
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ static void ApplyFilePatchToFST(const Patch& patch, const File& file,
if (node) if (node)
ApplyPatchToFile(patch, file, node); ApplyPatchToFile(patch, file, node);
} }
else if (CaseInsensitiveEquals(file.m_disc, "main.dol")) else if (dol_node && CaseInsensitiveEquals(file.m_disc, "main.dol"))
{ {
// Special case: If the filename is "main.dol", we want to patch the main executable. // Special case: If the filename is "main.dol", we want to patch the main executable.
ApplyPatchToFile(patch, file, dol_node); ApplyPatchToFile(patch, file, dol_node);