Let frodorc be a file

This commit is contained in:
simon.kagstrom 2010-02-14 09:41:01 +00:00
parent d7c318af18
commit f2d59103a5

View File

@ -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;