mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-15 05:47:43 -07:00
extra safety for the case of an empty platform config file
This commit is contained in:
parent
785716ac41
commit
5941d57236
@ -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++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user