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:
parent
e0d2567e6c
commit
a7b62386a7
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue