Modificado el parser para leer archivos de texto

This commit is contained in:
2024-06-26 13:35:28 +02:00
parent c8d1e79e1d
commit 9065dd1b94
5 changed files with 97 additions and 17 deletions

View File

@@ -583,6 +583,7 @@ bool Director::saveConfigFile()
// Opciones de video
file << "## VIDEO\n";
file << "## video mode can be: 0, SDL_WINDOW_FULLSCREEN, SDL_WINDOW_FULLSCREEN_DESKTOP\n";
if (options->video.mode == 0)
{
file << "mode=0\n";
@@ -600,6 +601,7 @@ bool Director::saveConfigFile()
file << "window.size=" + std::to_string(options->video.window.size) + "\n";
file << "## filter can be: FILTER_NEAREST, FILTER_LINEAL\n";
if (options->video.filter == FILTER_NEAREST)
{
file << "filter=FILTER_NEAREST\n";