diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-07-16 00:30:14 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-07-16 00:30:14 +0000 |
commit | c6b206ab5601108dbc917f78077612d6d935c7be (patch) | |
tree | 7a0bb3e818960e0fd4da92b105eee03a5cd96ee3 /src | |
parent | 3839ff35294ec2fba40603595f09fd98cb9f2709 (diff) | |
download | mana-client-c6b206ab5601108dbc917f78077612d6d935c7be.tar.gz mana-client-c6b206ab5601108dbc917f78077612d6d935c7be.tar.bz2 mana-client-c6b206ab5601108dbc917f78077612d6d935c7be.tar.xz mana-client-c6b206ab5601108dbc917f78077612d6d935c7be.zip |
Now we don't use the char *homeDir anymore.
Diffstat (limited to 'src')
-rw-r--r-- | src/engine.cpp | 2 | ||||
-rw-r--r-- | src/main.h | 1 | ||||
-rw-r--r-- | src/resources/buddylist.cpp | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index f0902bb0..7181ac80 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -159,7 +159,7 @@ Engine::Engine(): // Create dialogs chatWindow = new ChatWindow( - std::string(homeDir) + std::string("chatlog.txt")); + config.getValue("homeDir", "") + std::string("chatlog.txt")); statusWindow = new StatusWindow(); buyDialog = new BuyDialog(); sellDialog = new SellDialog(); @@ -71,7 +71,6 @@ extern unsigned char state; extern Sound sound; extern int screenW, screenH, bitDepth, displayFlags; extern bool useOpenGL; -extern char *homeDir; extern Configuration config; #endif diff --git a/src/resources/buddylist.cpp b/src/resources/buddylist.cpp index 9f11b5f7..a227ec71 100644 --- a/src/resources/buddylist.cpp +++ b/src/resources/buddylist.cpp @@ -29,7 +29,7 @@ BuddyList::BuddyList() { // Find saved buddy list file - filename = new std::string(std::string(homeDir) + "buddy.txt"); + filename = new std::string(std::string(config.getValue("homeDir", "") + "buddy.txt")); // Load buddy from file loadFile(); |