mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -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;
|
if (c > 0) break;
|
||||||
entry = &PlatformConfigFile[0];
|
entry = &PlatformConfigFile[0];
|
||||||
|
if (!entry->Value) break;
|
||||||
c++;
|
c++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,6 +88,7 @@ void Load()
|
|||||||
{
|
{
|
||||||
if (c > 0) break;
|
if (c > 0) break;
|
||||||
entry = &PlatformConfigFile[0];
|
entry = &PlatformConfigFile[0];
|
||||||
|
if (!entry->Value) break;
|
||||||
c++;
|
c++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,6 +141,7 @@ void Save()
|
|||||||
{
|
{
|
||||||
if (c > 0) break;
|
if (c > 0) break;
|
||||||
entry = &PlatformConfigFile[0];
|
entry = &PlatformConfigFile[0];
|
||||||
|
if (!entry->Value) break;
|
||||||
c++;
|
c++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user