PatchEngine: Add Reload() function

This commit is contained in:
Sepalani 2017-04-06 15:34:40 +01:00
parent 188f2b3cc5
commit 61b36d1f9a
3 changed files with 8 additions and 2 deletions

View File

@ -787,8 +787,7 @@ void SConfig::SetRunningGameMetadata(const std::string& game_id, u64 title_id, u
CBoot::LoadMapFromFilename();
HLE::Clear();
HLE::PatchFunctions();
PatchEngine::Shutdown();
PatchEngine::LoadPatches();
PatchEngine::Reload();
HiresTexture::Update();
}
}

View File

@ -246,4 +246,10 @@ void Shutdown()
Gecko::Shutdown();
}
void Reload()
{
Shutdown();
LoadPatches();
}
} // namespace

View File

@ -45,6 +45,7 @@ void LoadPatchSection(const std::string& section, std::vector<Patch>& patches, I
void LoadPatches();
bool ApplyFramePatches();
void Shutdown();
void Reload();
inline int GetPatchTypeCharLength(PatchType type)
{