X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FSettings.cpp;h=609b9fdd8b0b0233bc1cf15adaca31577e446ff6;hb=8d45019f2b1ac74108ae4589333680158fee32d5;hp=8258becbd1ad9c365433c91e43c39f7f02ded447;hpb=2ff8f400c9f3f19e0ac128bb331cf3203c44132e;p=lugaru.git diff --git a/Source/Settings.cpp b/Source/Settings.cpp index 8258bec..609b9fd 100644 --- a/Source/Settings.cpp +++ b/Source/Settings.cpp @@ -21,6 +21,7 @@ along with Lugaru. If not, see . #include "Settings.h" #include "Game.h" #include "Input.h" +#include "Utils/Folders.h" using namespace Game; @@ -79,7 +80,7 @@ void SaveSettings() newscreenheight = screenheight; if (newscreenheight < 0) newscreenheight = screenheight; - ofstream opstream(ConvertFileName(":Data:config.txt", "w")); + ofstream opstream(Folders::getConfigFilePath()); opstream << "Screenwidth:\n"; opstream << newscreenwidth; opstream << "\nScreenheight:\n"; @@ -167,7 +168,7 @@ void SaveSettings() bool LoadSettings() { - ifstream ipstream(ConvertFileName(":Data:config.txt"), std::ios::in); + ifstream ipstream(Folders::getConfigFilePath(), std::ios::in); if ( !ipstream || ipstream.fail() ) { printf("Config file not found\n"); return false;