mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 11:29:24 +01:00
Don't bail out if the prefs isn't found
This commit is contained in:
parent
80239a0b5d
commit
e2dcd7475a
@ -51,8 +51,14 @@ Prefs::Prefs()
|
||||
ScalingNumerator = 2;
|
||||
ScalingDenominator = 2;
|
||||
|
||||
#if defined(GEKKO)
|
||||
strcpy(BasePath, "/frodo/");
|
||||
strcpy(PrefsPath, "/frodo/");
|
||||
#else
|
||||
strcpy(BasePath, "");
|
||||
strcpy(PrefsPath, "");
|
||||
#endif
|
||||
|
||||
strcpy(DrivePath[0], "64prgs");
|
||||
strcpy(DrivePath[1], "");
|
||||
strcpy(DrivePath[2], "");
|
||||
|
10
Src/main.cpp
10
Src/main.cpp
@ -221,12 +221,14 @@ void Frodo::LoadFrodorc()
|
||||
}
|
||||
free((void*)p);
|
||||
}
|
||||
panic_if(!total_name,
|
||||
"Cannot find frodorc or frodorc.default in any tried directory");
|
||||
|
||||
// Load preferences
|
||||
ThePrefs.Load(total_name);
|
||||
strncpy(ThePrefs.PrefsPath, prefs_path, sizeof(ThePrefs.PrefsPath));
|
||||
if (total_name)
|
||||
{
|
||||
ThePrefs.Load(total_name);
|
||||
strncpy(ThePrefs.PrefsPath, prefs_path, sizeof(ThePrefs.PrefsPath));
|
||||
} else
|
||||
warning("Cannot find frodorc or frodorc.default in any tried directory");
|
||||
|
||||
free((void*)total_name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user