mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
extra safety for the case of an empty platform config file
This commit is contained in:
@ -53,6 +53,7 @@ void Load()
|
||||
{
|
||||
if (c > 0) break;
|
||||
entry = &PlatformConfigFile[0];
|
||||
if (!entry->Value) break;
|
||||
c++;
|
||||
}
|
||||
|
||||
@ -87,6 +88,7 @@ void Load()
|
||||
{
|
||||
if (c > 0) break;
|
||||
entry = &PlatformConfigFile[0];
|
||||
if (!entry->Value) break;
|
||||
c++;
|
||||
}
|
||||
|
||||
@ -139,6 +141,7 @@ void Save()
|
||||
{
|
||||
if (c > 0) break;
|
||||
entry = &PlatformConfigFile[0];
|
||||
if (!entry->Value) break;
|
||||
c++;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user