@@ -17,36 +17,35 @@ EmulatedSystemCounters systemCounters =
1717 true ,
1818};
1919
20- int emulating = 0 ;
20+ int emulating = 0 ;
2121
2222u8 *bios = NULL ;
2323u8 *pix = NULL ;
2424
25- u16 currentButtons[4 ] = { 0 , 0 , 0 , 0 }; // constrain: never contains hacked buttons, only the lower 16 bits of each are used
26- u16 lastKeys = 0 ;
27- int32 sensorX = 0 ;
28- int32 sensorY = 0 ;
25+ u16 currentButtons[4 ] = { 0 , 0 , 0 , 0 }; // constrain: never contains hacked buttons, only the lower 16 bits of each are used
26+ u16 lastKeys = 0 ;
27+ int32 sensorX = 0 ;
28+ int32 sensorY = 0 ;
2929
3030bool newFrame = true ;
3131bool8 speedup = false ;
3232u32 extButtons = 0 ;
3333bool8 capturePrevious = false ;
3434int32 captureNumber = 0 ;
3535
36- soundtick_t USE_TICKS_AS = 0 ;
37- soundtick_t soundTickStep = soundQuality * USE_TICKS_AS;
38- soundtick_t soundTicks = 0 ;
36+ soundtick_t USE_TICKS_AS = 0 ;
37+ soundtick_t soundTickStep = soundQuality * USE_TICKS_AS;
38+ soundtick_t soundTicks = 0 ;
3939
40- u32 soundIndex = 0 ;
41- int32 soundPaused = 1 ;
42- int32 soundPlay = 0 ;
43- u32 soundNextPosition = 0 ;
44-
45- u8 soundBuffer[6 ][735 ];
46- u32 soundBufferLen = 1470 ;
47- u32 soundBufferTotalLen = 14700 ;
48- u32 soundBufferIndex = 0 ;
40+ u32 soundIndex = 0 ;
41+ int32 soundPaused = 1 ;
42+ int32 soundPlay = 0 ;
43+ u32 soundNextPosition = 0 ;
4944
45+ u8 soundBuffer[6 ][735 ];
46+ u32 soundBufferLen = 1470 ;
47+ u32 soundBufferTotalLen = 14700 ;
48+ u32 soundBufferIndex = 0 ;
5049
5150u16 soundFinalWave[1470 ];
5251u16 soundFrameSound[735 * 30 * 2 ]; // for avi logging
@@ -57,37 +56,41 @@ int tempSaveID = 0;
5756int tempSaveAttempts = 0 ;
5857
5958// settings
60- bool8 synchronize = true ;
61- int32 gbFrameSkip = 0 ;
62- int32 frameSkip = 0 ;
59+ bool synchronize = true ;
60+ int32 gbFrameSkip = 0 ;
61+ int32 frameSkip = 0 ;
6362
64- bool8 cpuDisableSfx = false ;
63+ bool cpuDisableSfx = false ;
6564int32 layerSettings = 0xff00 ;
6665
6766#ifdef USE_GB_CORE_V7
68- bool8 gbNullInputHackEnabled = false ;
69- bool8 gbNullInputHackTempEnabled = false ;
67+ bool gbNullInputHackEnabled = false ;
68+ bool gbNullInputHackTempEnabled = false ;
69+ #else
70+ bool gbV20GBFrameTimingHack = false ;
71+ bool gbV20GBFrameTimingHackTemp = false ;
7072#endif
7173
7274#ifdef USE_GBA_CORE_V7
73- bool8 memLagEnabled = false ;
74- bool8 memLagTempEnabled = false ;
75+ bool memLagEnabled = false ;
76+ bool memLagTempEnabled = false ;
7577#endif
7678
77- bool8 useOldFrameTiming = false ;
78- bool8 useBios = false ;
79- bool8 skipBios = false ;
80- bool8 skipSaveGameBattery = false ;
81- bool8 skipSaveGameCheats = false ;
82- bool8 cheatsEnabled = true ;
83- bool8 mirroringEnable = false ;
79+ bool8 useOldFrameTiming = false ;
80+ bool8 useBios = false ;
81+ bool8 skipBios = false ;
82+ bool8 skipSaveGameBattery = false ;
83+ bool8 skipSaveGameCheats = false ;
84+ bool8 cheatsEnabled = true ;
85+ bool8 mirroringEnable = false ;
8486
8587bool8 cpuEnhancedDetection = true ;
8688int32 cpuSaveType = 0 ;
8789
88- int32 soundVolume = 0 ;
89- int32 soundQuality = 2 ;
90- bool8 soundEcho = false ;
91- bool8 soundLowPass = false ;
92- bool8 soundReverse = false ;
93- bool8 soundOffFlag = false ;
90+ int32 soundVolume = 0 ;
91+ int32 soundQuality = 2 ;
92+ bool8 soundEcho = false ;
93+ bool8 soundLowPass = false ;
94+ bool8 soundReverse = false ;
95+ int32 soundEnableFlag = 0x3ff ;
96+ bool8 soundOffFlag = false ;
0 commit comments