vaig a fer un commit per si de cas petara algo ...
This commit is contained in:
@@ -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")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user