mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-08-10 01:28:50 +00:00
savefile selection / an option to use no savefile
This commit is contained in:
+3
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user