mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-26 05:24:21 +01:00
Let frodorc be a file
This commit is contained in:
parent
d7c318af18
commit
f2d59103a5
@ -53,10 +53,10 @@ Prefs::Prefs()
|
|||||||
|
|
||||||
#if defined(GEKKO)
|
#if defined(GEKKO)
|
||||||
strcpy(BasePath, "/frodo/");
|
strcpy(BasePath, "/frodo/");
|
||||||
strcpy(PrefsPath, "/frodo/");
|
strcpy(PrefsPath, "/frodo/frodorc");
|
||||||
#else
|
#else
|
||||||
strcpy(BasePath, "");
|
strcpy(BasePath, "");
|
||||||
strcpy(PrefsPath, "");
|
strcpy(PrefsPath, "frodorc");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
strcpy(DrivePath[0], "64prgs");
|
strcpy(DrivePath[0], "64prgs");
|
||||||
@ -495,6 +495,8 @@ bool Prefs::Save(const char *filename)
|
|||||||
fprintf(file, "NetworkKey = %d\n", NetworkKey);
|
fprintf(file, "NetworkKey = %d\n", NetworkKey);
|
||||||
fprintf(file, "NetworkAvatar = %d\n", NetworkAvatar);
|
fprintf(file, "NetworkAvatar = %d\n", NetworkAvatar);
|
||||||
fprintf(file, "NetworkName = %s\n", NetworkName);
|
fprintf(file, "NetworkName = %s\n", NetworkName);
|
||||||
|
fprintf(file, "NetworkServer = %s\n", NetworkServer);
|
||||||
|
fprintf(file, "NetworkPort = %d\n", NetworkPort);
|
||||||
fclose(file);
|
fclose(file);
|
||||||
ThePrefsOnDisk = *this;
|
ThePrefsOnDisk = *this;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user