it annoyed me

This commit is contained in:
nattthebear 2017-04-23 13:25:29 -04:00
parent 13423ac461
commit 432cbc54d7
1 changed files with 7 additions and 6 deletions

View File

@ -29,12 +29,13 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA
if (biosfile.Length != 16 * 1024)
throw new ArgumentException("BIOS file is not exactly 16K!");
LibVBANext.FrontEndSettings FES = new LibVBANext.FrontEndSettings();
FES.saveType = (LibVBANext.FrontEndSettings.SaveType)game.GetInt("saveType", 0);
FES.flashSize = (LibVBANext.FrontEndSettings.FlashSize)game.GetInt("flashSize", 0x10000);
FES.enableRtc = game.GetInt("rtcEnabled", 0) != 0;
FES.mirroringEnable = game.GetInt("mirroringEnabled", 0) != 0;
var FES = new LibVBANext.FrontEndSettings
{
saveType = (LibVBANext.FrontEndSettings.SaveType)game.GetInt("saveType", 0),
flashSize = (LibVBANext.FrontEndSettings.FlashSize)game.GetInt("flashSize", 0x10000),
enableRtc = game.GetInt("rtcEnabled", 0) != 0,
mirroringEnable = game.GetInt("mirroringEnabled", 0) != 0
};
Console.WriteLine("GameDB loaded settings: saveType={0}, flashSize={1}, rtcEnabled={2}, mirroringEnabled={3}",
FES.saveType, FES.flashSize, FES.enableRtc, FES.mirroringEnable);