diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-06-08 23:07:15 +0200 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-07-19 00:55:03 +0200 |
| commit | 9e5bc98496ef59bd2e30e7157b1d33a363ac538f (patch) | |
| tree | 60a89242fbc664ff18cb8ea9d3cbd3304dd94803 /Source/Core | |
| parent | fa30ba18f5c9dbf06f7df0c1e9bd04065a2c439f (diff) | |
DiscIO/RiivolutionPatcher: Skip main.dol patches if no main.dol was given.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DiscIO/RiivolutionPatcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/RiivolutionPatcher.cpp b/Source/Core/DiscIO/RiivolutionPatcher.cpp index e3d3d88af9..a9593dddcd 100644 --- a/Source/Core/DiscIO/RiivolutionPatcher.cpp +++ b/Source/Core/DiscIO/RiivolutionPatcher.cpp @@ -397,7 +397,7 @@ static void ApplyFilePatchToFST(const Patch& patch, const File& file, if (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. ApplyPatchToFile(patch, file, dol_node); |
