Merge pull request #6471 from unknownbrackets/replace-funcs

Reset replacements on loadexec
This commit is contained in:
Henrik Rydgård 2014-06-30 09:31:18 +02:00
commit 58e1c814c8

View File

@ -26,6 +26,7 @@
#include "Core/HLE/HLE.h"
#include "Core/HLE/FunctionWrappers.h"
#include "Core/HLE/HLETables.h"
#include "Core/HLE/ReplaceTables.h"
#include "Core/Reporting.h"
#include "Core/Host.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
if (__KernelIsRunning())
{
Replacement_Shutdown();
__KernelShutdown();
//HLE needs to be reset here
HLEShutdown();
Replacement_Init();
HLEInit();
GPU_Reinitialize();
}