Only in trunk/data: cooldown diff -ur cooldown/src/LevelSet.cpp trunk/src/LevelSet.cpp --- cooldown/src/LevelSet.cpp 2010-09-03 05:09:22.302107984 +0000 +++ trunk/src/LevelSet.cpp 2010-09-03 05:04:56.003117612 +0000 @@ -5,6 +5,8 @@ #include "ResourceManager.h" #include "Score.h" +string savefile = ".cooldown.save"; + LevelSet::LevelSet() { } @@ -841,7 +843,7 @@ #ifndef NOLOG Logger::log(DEBUG) << "LevelSet::saveState" << std::endl; #endif - ofstream sfile("levels.sav"); + ofstream sfile((getenv("HOME")+("/"+savefile)).c_str()); if (!sfile) { Logger::log(ERROR) << "ERROR: Cannot save state!" << std::endl; @@ -863,7 +865,7 @@ #ifndef NOLOG Logger::log(DEBUG) << "LevelSet::loadState" << std::endl; #endif - ifstream sfile("levels.sav"); + ifstream sfile((getenv("HOME")+("/"+savefile)).c_str()); if (!sfile) { Logger::log(ERROR) << "ERROR: Cannot load state!" << std::endl; diff -ur cooldown/src/main.cpp trunk/src/main.cpp --- cooldown/src/main.cpp 2010-09-03 05:09:22.298110743 +0000 +++ trunk/src/main.cpp 2010-09-03 05:07:32.558110249 +0000 @@ -17,6 +17,7 @@ int main(int argc, char *argv[]) { std::cerr << "=== CoolDown by Glezmen ===" << std::endl; + chdir("@DATADIR@"); Cooldown game; game.init(WIDTH, HEIGHT, BPP); return game.exec();