Properly reset some state between games.

This commit is contained in:
Unknown W. Brackets 2014-03-04 07:55:08 -08:00
parent 505b0c388f
commit 446418d783
3 changed files with 8 additions and 1 deletions

View File

@ -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();

View File

@ -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;
}
}

View File

@ -67,6 +67,8 @@ void __UmdInit()
umdStatus = 0;
umdErrorStat = 0;
driveCBId = 0;
umdWaitingThreads.clear();
umdPausedWaits.clear();
__KernelRegisterWaitTypeFuncs(WAITTYPE_UMD, __UmdBeginCallback, __UmdEndCallback);
}