diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-02 11:23:05 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-02 11:23:05 +0000 |
commit | b8dbdb628ba7a07a785e494d0ed76ebfe9e06615 (patch) | |
tree | 173d22e656ac771e473cdb7c1d035963d39c27e1 /src/engine.cpp | |
parent | b05628214d64e579504c87da72e79c024245a631 (diff) | |
download | mana-b8dbdb628ba7a07a785e494d0ed76ebfe9e06615.tar.gz mana-b8dbdb628ba7a07a785e494d0ed76ebfe9e06615.tar.bz2 mana-b8dbdb628ba7a07a785e494d0ed76ebfe9e06615.tar.xz mana-b8dbdb628ba7a07a785e494d0ed76ebfe9e06615.zip |
Made config.xml, tmw.log and chatlog.txt always appear in ~/.tmw on *nix.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 11a0cd81..6200bd0c 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -145,7 +145,8 @@ Engine::Engine() guiTop->add(debugInfo); // Create dialogs - chatWindow = new ChatWindow("chatlog.txt", 20); + chatWindow = new ChatWindow( + std::string(homeDir) + std::string("chatlog.txt")); statusWindow = new StatusWindow(); buyDialog = new BuyDialog(); sellDialog = new SellDialog(); @@ -216,10 +217,10 @@ Engine::Engine() Image *itembitmap = resman->getImage( "graphics/sprites/items.png", IMG_ALPHA); - if (!npcbmp) logger.error("Unable to load npcs.png"); - if (!emotionbmp) logger.error("Unable to load emotions.png"); - if (!weaponbitmap) logger.error("Unable to load weapons.png"); - if (!itembitmap) logger.error("Unable to load items.png"); + if (!npcbmp) logger->error("Unable to load npcs.png"); + if (!emotionbmp) logger->error("Unable to load emotions.png"); + if (!weaponbitmap) logger->error("Unable to load weapons.png"); + if (!itembitmap) logger->error("Unable to load items.png"); npcset = new Spriteset(npcbmp, 50, 80); emotionset = new Spriteset(emotionbmp, 19, 19); |