savefile selection / an option to use no savefile

This commit is contained in:
Zeno Rogue
2022-09-15 12:38:39 +02:00
parent a20063c119
commit 308fcd90aa
10 changed files with 66 additions and 13 deletions
+3 -2
View File
@@ -287,10 +287,11 @@ void show() {
}
void load() {
if(scorefile == "") return;
scores.clear();
FILE *f = fopen(scorefile, "rt");
FILE *f = fopen(scorefile.c_str(), "rt");
if(!f) {
printf("Could not open the score file '%s'!\n", scorefile);
printf("Could not open the score file '%s'!\n", scorefile.c_str());
addMessage(s0 + "Could not open the score file: " + scorefile);
return;
}