Skip to content

Commit

Permalink
Fixed the high score file. The file is supposed to be saved in PWD.
Browse files Browse the repository at this point in the history
  • Loading branch information
BROsandr committed Sep 4, 2021
1 parent 6743925 commit 8c9dbb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/highscore.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ static const char* highscore_retrieve_file(void)
getenv("HOME"), hs_dir_name, hs_file_name);
}
else {
return hs_file_name;
snprintf(buffer, sizeof(buffer), "%s/%s", getenv("PWD"), hs_file_name);
return buffer;
}

/* Create file only if it doesn't exist */
Expand Down

0 comments on commit 8c9dbb2

Please sign in to comment.