aboutsummaryrefslogtreecommitdiff
path: root/src/GameInitDispose.cpp
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-07-26 15:27:30 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-07-26 15:27:30 +0700
commit180d58634bd0fd742b60fb2dc907fa836bcc4894 (patch)
treec0b74fafc03ff5ef10781438d8a1aa61f41baf5c /src/GameInitDispose.cpp
parent02cacabff7c8301412faaaeccdbf67cd2bbc38c0 (diff)
downloadblackshades-180d58634bd0fd742b60fb2dc907fa836bcc4894.tar.gz
Move Highscore out
Diffstat (limited to 'src/GameInitDispose.cpp')
-rw-r--r--src/GameInitDispose.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/GameInitDispose.cpp b/src/GameInitDispose.cpp
index b791f74..92a9f89 100644
--- a/src/GameInitDispose.cpp
+++ b/src/GameInitDispose.cpp
@@ -2205,11 +2205,11 @@ int Game::InitGL(void)
}
// TODO: Read high score
- ifstream ipstream2("Data/Highscore");
+ ifstream ipstream2("highscore.txt");
if(!ipstream2) {
- highscore=0;
- beatgame=0;
- ofstream opstream("Data/Highscore");
+ highscore = 0;
+ beatgame = 0;
+ ofstream opstream("highscore.txt");
opstream << highscore;
opstream << "\n";
opstream << beatgame;