mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-01-22 22:06:58 +00:00
CMakeLists fix, rebooting fix
This commit is contained in:
parent
83fb5e96de
commit
00fc7754c6
@ -28,7 +28,6 @@ set(SRCS
|
||||
HLE/sceIo.cpp
|
||||
HLE/sceKernel.cpp
|
||||
HLE/sceKernelAlarm.cpp
|
||||
HLE/sceKernelCallback.cpp
|
||||
HLE/sceKernelEventFlag.cpp
|
||||
HLE/sceKernelInterrupt.cpp
|
||||
HLE/sceKernelMemory.cpp
|
||||
|
@ -105,6 +105,10 @@ void __KernelShutdown()
|
||||
kernelRunning = false;
|
||||
}
|
||||
|
||||
bool __KernelIsRunning() {
|
||||
return kernelRunning;
|
||||
}
|
||||
|
||||
void sceKernelExitGame()
|
||||
{
|
||||
INFO_LOG(HLE,"sceKernelExitGame");
|
||||
|
@ -240,6 +240,7 @@ struct SceKernelLoadExecParam
|
||||
|
||||
void __KernelInit();
|
||||
void __KernelShutdown();
|
||||
bool __KernelIsRunning();
|
||||
bool __KernelLoadExec(const char *filename, SceKernelLoadExecParam *param);
|
||||
|
||||
|
||||
|
@ -476,6 +476,9 @@ u32 __KernelGetModuleGP(SceUID module)
|
||||
bool __KernelLoadExec(const char *filename, SceKernelLoadExecParam *param, std::string *error_string)
|
||||
{
|
||||
// Wipe kernel here, loadexec should reset the entire system
|
||||
if (__KernelIsRunning())
|
||||
__KernelShutdown();
|
||||
|
||||
__KernelInit();
|
||||
|
||||
PSPFileInfo info = pspFileSystem.GetFileInfo(filename);
|
||||
|
Loading…
x
Reference in New Issue
Block a user