PatchEngine: Add Reload() function
This commit is contained in:
parent
188f2b3cc5
commit
61b36d1f9a
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -246,4 +246,10 @@ void Shutdown()
|
|||
Gecko::Shutdown();
|
||||
}
|
||||
|
||||
void Reload()
|
||||
{
|
||||
Shutdown();
|
||||
LoadPatches();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue