vaig a fer un commit per si de cas petara algo ...

This commit is contained in:
2025-06-04 14:05:56 +02:00
parent 64b86c7ac1
commit 1a84f1b1b0
6 changed files with 97 additions and 23 deletions

View File

@@ -18,7 +18,7 @@ bool setOptions(const std::string &var, const std::string &value);
void initOptions()
{
options.window.caption = "Coffee Crisis Arcade Edition";
options.window.zoom = 2;
options.window.size = 2;
// Opciones de video
options.video.fullscreen = false;
@@ -120,7 +120,7 @@ bool saveOptionsFile(std::string file_path)
file << "## video.scale_mode [" << static_cast<int>(SDL_ScaleMode::SDL_SCALEMODE_NEAREST) << ": nearest, " << static_cast<int>(SDL_ScaleMode::SDL_SCALEMODE_LINEAR) << ": lineal]\n";
file << "\n";
file << "window.zoom=" << options.window.zoom << "\n";
file << "window.zoom=" << options.window.size << "\n";
file << "video.fullscreen=" << boolToString(options.video.fullscreen) << "\n";
file << "video.scale_mode=" << static_cast<int>(options.video.scale_mode) << "\n";
file << "video.v_sync=" << boolToString(options.video.v_sync) << "\n";
@@ -188,7 +188,7 @@ bool setOptions(const std::string &var, const std::string &value)
}
else if (var == "window.zoom")
{
options.window.zoom = std::stoi(value);
options.window.size = std::stoi(value);
}
else if (var == "video.scale_mode")
{