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:
retro-wertz 2018-06-13 22:49:26 +08:00
parent 01c5f465fe
commit 27fa30b43c
2 changed files with 3 additions and 5 deletions

View File

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

View File

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