Afinada un poc mes la classe Options

This commit is contained in:
2025-02-23 20:02:55 +01:00
parent 2ee0c70319
commit 5bb5be9c33
4 changed files with 127 additions and 156 deletions

View File

@@ -120,16 +120,16 @@ bool saveOptionsToFile(const std::string &file_path)
}
// Escribe en el fichero
file << "## VERSION\n";
file << "version=" << options.version << "\n";
file << "\n## CONTROL\n";
file << "## keys = CURSOR | OPQA | WASD\n";
file << "keys=" << static_cast<int>(options.keys) << "\n";
file << "\n## WINDOW\n";
file << "window.zoom=" << options.window.zoom << "\n";
file << "\n## VIDEO\n";
file << "video.mode=" << options.video.mode << "\n";
file << "window.zoom=" << options.window.zoom << "\n";
file << "video.filter=" << static_cast<int>(options.video.filter) << "\n";
file << "video.shaders=" << boolToString(options.video.shaders) << "\n";
file << "video.vertical_sync=" << boolToString(options.video.vertical_sync) << "\n";