Libretro: Disable cheats by default, update to bios loading
Minor rework on how bios is loaded when CPUInit is called, removes a few conditions. Disable cheats by default. This is automatically re-enabled when enabling and applying cheats. Should save a few cycles during runtime if cheats are not needed.
This commit is contained in:
parent
01c5f465fe
commit
27fa30b43c
|
@ -29,7 +29,7 @@ int cpuSaveType = 0;
|
|||
int skipSaveGameBattery = 0;
|
||||
int skipSaveGameCheats = 0;
|
||||
int useBios = 0;
|
||||
int cheatsEnabled = 1;
|
||||
int cheatsEnabled = 0;
|
||||
int layerSettings = 0xff00;
|
||||
int layerEnable = 0xff00;
|
||||
bool speedup = false;
|
||||
|
|
|
@ -475,10 +475,7 @@ static void gba_init(void)
|
|||
soundInit();
|
||||
soundSetSampleRate(32000);
|
||||
|
||||
if (usebios && biosfile[0])
|
||||
CPUInit(biosfile, true);
|
||||
else
|
||||
CPUInit(0, false);
|
||||
CPUInit(biosfile, usebios);
|
||||
|
||||
CPUReset();
|
||||
|
||||
|
@ -654,6 +651,7 @@ bool retro_unserialize(const void* data, size_t size)
|
|||
|
||||
void retro_cheat_reset(void)
|
||||
{
|
||||
cheatsEnabled = 1;
|
||||
cheatsDeleteAll(false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue