#include "Settings.h"
#include "Game.h"
#include "Input.h"
+#include "Utils/Folders.h"
using namespace Game;
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";
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;