mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 07:20:49 +00:00
Properly reset some state between games.
This commit is contained in:
parent
505b0c388f
commit
446418d783
@ -73,6 +73,7 @@
|
||||
#include "scePspNpDrm_user.h"
|
||||
#include "sceVaudio.h"
|
||||
#include "sceHeap.h"
|
||||
#include "sceDmac.h"
|
||||
|
||||
#include "../Util/PPGeDraw.h"
|
||||
|
||||
@ -131,6 +132,7 @@ void __KernelInit()
|
||||
__VaudioInit();
|
||||
__CheatInit();
|
||||
__HeapInit();
|
||||
__DmacInit();
|
||||
|
||||
SaveState::Init(); // Must be after IO, as it may create a directory
|
||||
Reporting::Init();
|
||||
|
@ -61,10 +61,13 @@ void __PowerInit() {
|
||||
volatileMemLocked = false;
|
||||
volatileWaitingThreads.clear();
|
||||
|
||||
if(g_Config.iLockedCPUSpeed > 0) {
|
||||
if (g_Config.iLockedCPUSpeed > 0) {
|
||||
CoreTiming::SetClockFrequencyMHz(g_Config.iLockedCPUSpeed);
|
||||
pllFreq = g_Config.iLockedCPUSpeed;
|
||||
busFreq = g_Config.iLockedCPUSpeed / 2;
|
||||
} else {
|
||||
pllFreq = 222;
|
||||
busFreq = 111;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -67,6 +67,8 @@ void __UmdInit()
|
||||
umdStatus = 0;
|
||||
umdErrorStat = 0;
|
||||
driveCBId = 0;
|
||||
umdWaitingThreads.clear();
|
||||
umdPausedWaits.clear();
|
||||
|
||||
__KernelRegisterWaitTypeFuncs(WAITTYPE_UMD, __UmdBeginCallback, __UmdEndCallback);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user