vcs ps2: more fast loading
@@ -112,6 +112,16 @@ float sub_2653F0(int a1)
return *flt_487488;
}
+void UnthrottleEmuEnable()
+{
+ FrameLimitUnthrottle = 1;
+}
+
+void UnthrottleEmuDisable()
+{
+ FrameLimitUnthrottle = 0;
+}
+
int PCControlScheme = 0;
int log_cleared = 0;
void GameLoopStuff()
@@ -128,6 +138,15 @@ void GameLoopStuff()
//npf_snprintf(OSDText[0], 255, "Cam Pos: %f %f %f", GetCamPos()->x, GetCamPos()->y, GetCamPos()->z);
}
+ // gBlackScreenTime
+ {
+ static float* gBlackScreenTime = (float*)0x486E24;
+ if (*gBlackScreenTime)
+ UnthrottleEmuEnable();
+ else
+ UnthrottleEmuDisable();
+ }
+
// PC Cheats
if (PCControlScheme != 0)
HandlePCCheats();
@@ -154,16 +173,6 @@ void test(int a1, struct CPad* a2)
PlayerControlFreeAim(a1, a2);
}
-void UnthrottleEmuEnable()
-{
- FrameLimitUnthrottle = 1;
-}
-
-void UnthrottleEmuDisable()
-{
- FrameLimitUnthrottle = 0;
-}
-
void init()
{
//logger.SetBuffer(OSDText, sizeof(OSDText) / sizeof(OSDText[0]), sizeof(OSDText[0]));
