mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-09 18:45:40 +00:00
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();
|
CBoot::LoadMapFromFilename();
|
||||||
HLE::Clear();
|
HLE::Clear();
|
||||||
HLE::PatchFunctions();
|
HLE::PatchFunctions();
|
||||||
PatchEngine::Shutdown();
|
PatchEngine::Reload();
|
||||||
PatchEngine::LoadPatches();
|
|
||||||
HiresTexture::Update();
|
HiresTexture::Update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -246,4 +246,10 @@ void Shutdown()
|
|||||||
Gecko::Shutdown();
|
Gecko::Shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Reload()
|
||||||
|
{
|
||||||
|
Shutdown();
|
||||||
|
LoadPatches();
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
@ -45,6 +45,7 @@ void LoadPatchSection(const std::string& section, std::vector<Patch>& patches, I
|
|||||||
void LoadPatches();
|
void LoadPatches();
|
||||||
bool ApplyFramePatches();
|
bool ApplyFramePatches();
|
||||||
void Shutdown();
|
void Shutdown();
|
||||||
|
void Reload();
|
||||||
|
|
||||||
inline int GetPatchTypeCharLength(PatchType type)
|
inline int GetPatchTypeCharLength(PatchType type)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user