Cocoa Port:

- Also load/save external firmware settings if Use External Firmware Image is enabled.
- Do some minor code cleanup.
This commit is contained in:
rogerman 2015-08-07 00:16:35 +00:00
parent e0d2567e6c
commit a7b62386a7
3 changed files with 5 additions and 3 deletions

View File

@ -550,11 +550,13 @@ volatile bool execute = true;
{
self.emuFlagUseExternalFirmware = YES;
CommonSettings.UseExtFirmware = true;
CommonSettings.UseExtFirmwareSettings = true;
}
else
{
self.emuFlagUseExternalFirmware = NO;
CommonSettings.UseExtFirmware = false;
CommonSettings.UseExtFirmwareSettings = false;
}
if (theFlags & EMULATION_BOOT_FROM_FIRMWARE_MASK)

View File

@ -250,7 +250,7 @@ bool CFIRMWARE::load()
u32 size = 0;
u8 *data = NULL;
if (CommonSettings.UseExtFirmware == false)
if (!CommonSettings.UseExtFirmware)
return false;
if (strlen(CommonSettings.Firmware) == 0)
return false;

View File

@ -559,7 +559,7 @@ const char* _CDECL_ FCEUI_LoadMovie(const char *fname, bool _read_only, bool tas
//poweron(true);
// reset firmware (some games can write to it)
if (CommonSettings.UseExtFirmware == false)
if (!CommonSettings.UseExtFirmware)
{
NDS_CreateDummyFirmware(&CommonSettings.fw_config);
}
@ -674,7 +674,7 @@ void FCEUI_SaveMovie(const char *fname, std::wstring author, int flag, std::stri
currMovieData.rtcStart = rtcstart;
// reset firmware (some games can write to it)
if (CommonSettings.UseExtFirmware == false)
if (!CommonSettings.UseExtFirmware)
{
NDS_CreateDummyFirmware(&CommonSettings.fw_config);
}