Skip to content

Commit

Permalink
Properly reset some state between games.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Mar 4, 2014
1 parent 505b0c3 commit 446418d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Core/HLE/sceKernel.cpp
Expand Up @@ -73,6 +73,7 @@
#include "scePspNpDrm_user.h"
#include "sceVaudio.h"
#include "sceHeap.h"
#include "sceDmac.h"

#include "../Util/PPGeDraw.h"

Expand Down Expand Up @@ -131,6 +132,7 @@ void __KernelInit()
__VaudioInit();
__CheatInit();
__HeapInit();
__DmacInit();

SaveState::Init(); // Must be after IO, as it may create a directory
Reporting::Init();
Expand Down
5 changes: 4 additions & 1 deletion Core/HLE/scePower.cpp
Expand Up @@ -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;
}
}

Expand Down
2 changes: 2 additions & 0 deletions Core/HLE/sceUmd.cpp
Expand Up @@ -67,6 +67,8 @@ void __UmdInit()
umdStatus = 0;
umdErrorStat = 0;
driveCBId = 0;
umdWaitingThreads.clear();
umdPausedWaits.clear();

__KernelRegisterWaitTypeFuncs(WAITTYPE_UMD, __UmdBeginCallback, __UmdEndCallback);
}
Expand Down

0 comments on commit 446418d

Please sign in to comment.