mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Reset replacements on loadexec.
Just to make sure we don't get confused.
This commit is contained in:
parent
c168db5943
commit
c6f5ddd7a4
1 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
||||||
#include "Core/HLE/HLE.h"
|
#include "Core/HLE/HLE.h"
|
||||||
#include "Core/HLE/FunctionWrappers.h"
|
#include "Core/HLE/FunctionWrappers.h"
|
||||||
#include "Core/HLE/HLETables.h"
|
#include "Core/HLE/HLETables.h"
|
||||||
|
#include "Core/HLE/ReplaceTables.h"
|
||||||
#include "Core/Reporting.h"
|
#include "Core/Reporting.h"
|
||||||
#include "Core/Host.h"
|
#include "Core/Host.h"
|
||||||
#include "Core/MIPS/MIPS.h"
|
#include "Core/MIPS/MIPS.h"
|
||||||
|
@ -1439,9 +1440,11 @@ bool __KernelLoadExec(const char *filename, u32 paramPtr, std::string *error_str
|
||||||
// Wipe kernel here, loadexec should reset the entire system
|
// Wipe kernel here, loadexec should reset the entire system
|
||||||
if (__KernelIsRunning())
|
if (__KernelIsRunning())
|
||||||
{
|
{
|
||||||
|
Replacement_Shutdown();
|
||||||
__KernelShutdown();
|
__KernelShutdown();
|
||||||
//HLE needs to be reset here
|
//HLE needs to be reset here
|
||||||
HLEShutdown();
|
HLEShutdown();
|
||||||
|
Replacement_Init();
|
||||||
HLEInit();
|
HLEInit();
|
||||||
GPU_Reinitialize();
|
GPU_Reinitialize();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue