Jeck - Support for user profiles, preliminary theme support, virtual keypad, options GUI update. Still a bit unorganized, but it works.

This commit is contained in:
wagic.jeck
2009-08-26 20:13:09 +00:00
parent 0dfa3f2e16
commit 355ee7a271
30 changed files with 2779 additions and 1049 deletions

View File

@@ -67,7 +67,8 @@ int DeckStats::percentVictories(){
void DeckStats::load(Player * player){
char filename[512];
sprintf(filename, RESPATH"/player/stats/%s.txt",player->deckFileSmall.c_str());
sprintf(filename, RESPATH"/profile/%s/stats/%s.txt",
options[Options::ACTIVE_PROFILE].str.c_str(),player->deckFileSmall.c_str());
load(filename);
}
@@ -94,7 +95,8 @@ void DeckStats::load(const char * filename){
void DeckStats::save(Player * player){
char filename[512];
sprintf(filename, RESPATH"/player/stats/%s.txt",player->deckFileSmall.c_str());
sprintf(filename, RESPATH"/profile/%s/stats/%s.txt",
options[Options::ACTIVE_PROFILE].str.c_str(),player->deckFileSmall.c_str());
save(filename);
}