diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-18 01:07:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-18 01:07:09 +0300 |
commit | 566ce2ee769e863977d57ba156a281ade5cb9c05 (patch) | |
tree | 57c7fed83e2fa35588bd488431dd1129cf2345c3 /src/game.cpp | |
parent | 1c119959b43d7dde5291ea5ae5d70b59e72b8c10 (diff) | |
download | ManaVerse-566ce2ee769e863977d57ba156a281ade5cb9c05.tar.gz ManaVerse-566ce2ee769e863977d57ba156a281ade5cb9c05.tar.bz2 ManaVerse-566ce2ee769e863977d57ba156a281ade5cb9c05.tar.xz ManaVerse-566ce2ee769e863977d57ba156a281ade5cb9c05.zip |
move most direct calls to physfs to separate file.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp index 33aa1ca02..ef053bd8f 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -89,12 +89,11 @@ #include "utils/gettext.h" #include "utils/mkdir.h" +#include "utils/physfstools.h" #include <guichan/exception.hpp> #include <guichan/focushandler.hpp> -#include <physfs.h> - #include <fstream> #include <sstream> #include <string> @@ -513,7 +512,7 @@ bool Game::saveScreenshot(SDL_Surface *const screenshot) logger->log("Directory %s doesn't exist and can't be created! " "Setting screenshot directory to home.", screenshotDirectory.c_str()); - screenshotDirectory = std::string(PHYSFS_getUserDir()); + screenshotDirectory = std::string(PhysFs::getUserDir()); } do |