Core/PatchEngine: Get rid of global system accessors

We can pass the system instance into ApplyFramePatches() instead,
especially considering the patch engine callback already has it
available.
This commit is contained in:
Lioncache 2023-12-18 16:44:39 -05:00
commit 3802c7bf11
3 changed files with 13 additions and 9 deletions

View file

@ -13,6 +13,10 @@ namespace Common
{
class IniFile;
}
namespace Core
{
class System;
}
namespace PatchEngine
{
@ -57,7 +61,7 @@ void LoadPatches();
void AddMemoryPatch(std::size_t index);
void RemoveMemoryPatch(std::size_t index);
bool ApplyFramePatches();
bool ApplyFramePatches(Core::System& system);
void Shutdown();
void Reload();