Reworked app, #11 key bindings, optimisations

This commit is contained in:
Niellune
2026-03-10 00:39:00 +02:00
parent 484c4ce2d5
commit 570695fbcf
14 changed files with 570 additions and 487 deletions
+3 -2
View File
@@ -3,13 +3,13 @@
#include <iostream>
#include <fstream>
void Settings::load(const std::string &filename)
bool Settings::load(const std::string &filename)
{
std::ifstream file(filename);
if (!file.is_open())
{
std::cerr << "[Settings] Cannot open “" << filename << "" << std::endl;
return;
return false;
}
std::string line;
@@ -48,6 +48,7 @@ void Settings::load(const std::string &filename)
if (!found)
std::cerr << "[Settings] Unknown key “" << key << "" << std::endl;
}
return true;
}
void Settings::print()