newscreenheight = screenheight;
if (newscreenheight < 0)
newscreenheight = screenheight;
+ errno = 0;
ofstream opstream(Folders::getConfigFilePath());
if (opstream.fail()) {
perror(("Couldn't save config file " + Folders::getConfigFilePath()).c_str());
opstream << damageeffects;
opstream << "\nText:\n";
opstream << texttoggle;
- opstream << "\nDebug:\n";
- opstream << debugmode;
opstream << "\nShow Points:\n";
opstream << showpoints;
opstream << "\nAlways Blur:\n";
bool LoadSettings()
{
+ errno = 0;
ifstream ipstream(Folders::getConfigFilePath(), std::ios::in);
if ( ipstream.fail() ) {
perror(("Couldn't read config file " + Folders::getConfigFilePath()).c_str());