mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 01:28:57 +00:00
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:
parent
0cab6583a9
commit
3802c7bf11
3 changed files with 13 additions and 9 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue