|
From: Markus R. <god...@us...> - 2009-07-29 15:35:17
|
Module: performous
Branch: master
Commit: c2119b87fbf54d136864aa14eb603e007c09b17a
Author: Markus Raab <un...@ma...>
Date: Fri Jul 24 08:38:20 2009 +0200
Take path of song
needs songdir writeable to save highscore
---
game/screen_sing.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/game/screen_sing.cc b/game/screen_sing.cc
index 7044366..a3f39d1 100644
--- a/game/screen_sing.cc
+++ b/game/screen_sing.cc
@@ -221,8 +221,8 @@ ScoreWindow::ScoreWindow(Engine& e, Song const& song):
e.kill(); // kill the engine thread (to avoid consuming memory)
- // TODO correct path and filename
- HighScore hi ("", "High.sco");
+ HighScore hi (m_song.path, "High.sco");
+ // TODO fallback path if not writeable?
try {
hi.load();
} catch (HighScoreException const& hi) {
|