afegit gif.cpp i jail_shader.cpp desde coffee_crisis_arcade_edition
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
#include "options.h"
|
||||
#include <SDL2/SDL_video.h> // for SDL_WINDOW_FULLSCREEN_DESKTOP
|
||||
#include <algorithm> // for find_if
|
||||
#include <cctype> // for isspace
|
||||
#include <fstream> // for basic_ostream, operator<<, basic_ofstream
|
||||
#include <functional> // for function
|
||||
#include <iostream> // for cout, cerr
|
||||
#include <sstream> // for basic_istringstream
|
||||
#include <string> // for char_traits, string, operator<<, hash
|
||||
#include <unordered_map> // for unordered_map, operator==, _Node_const_i...
|
||||
#include <utility> // for pair
|
||||
#include <SDL2/SDL_video.h> // Para SDL_WINDOW_FULLSCREEN_DESKTOP
|
||||
#include <algorithm> // Para find_if
|
||||
#include <cctype> // Para isspace
|
||||
#include <fstream> // Para basic_ostream, operator<<, basic_ofstream
|
||||
#include <functional> // Para function
|
||||
#include <iostream> // Para cout, cerr
|
||||
#include <sstream> // Para basic_istringstream
|
||||
#include <string> // Para char_traits, string, operator<<, hash
|
||||
#include <unordered_map> // Para unordered_map, operator==, _Node_const_i...
|
||||
#include <utility> // Para pair
|
||||
|
||||
// Variables
|
||||
Options options;
|
||||
@@ -41,7 +41,7 @@ bool loadOptionsFromFile(const std::string &file_path)
|
||||
|
||||
// Variables para manejar el fichero
|
||||
std::ifstream file(file_path);
|
||||
|
||||
|
||||
// Si el fichero se puede abrir
|
||||
if (file.good())
|
||||
{
|
||||
@@ -188,7 +188,7 @@ bool setOptions(const std::string &var, const std::string &value)
|
||||
}
|
||||
else
|
||||
{
|
||||
options.keys = DEFAULT_CONTROL_SCHEME;
|
||||
options.keys = DEFAULT_CONTROL_SCHEME;
|
||||
}
|
||||
}},
|
||||
{"window.zoom", [](const std::string &v)
|
||||
@@ -200,7 +200,7 @@ bool setOptions(const std::string &var, const std::string &value)
|
||||
}
|
||||
else
|
||||
{
|
||||
options.window.zoom = DEFAULT_WINDOW_ZOOM;
|
||||
options.window.zoom = DEFAULT_WINDOW_ZOOM;
|
||||
}
|
||||
}},
|
||||
{"video.mode", [](const std::string &v)
|
||||
@@ -212,7 +212,7 @@ bool setOptions(const std::string &var, const std::string &value)
|
||||
}
|
||||
else
|
||||
{
|
||||
options.video.mode = 0;
|
||||
options.video.mode = 0;
|
||||
}
|
||||
}},
|
||||
{"video.filter", [](const std::string &v)
|
||||
@@ -224,7 +224,7 @@ bool setOptions(const std::string &var, const std::string &value)
|
||||
}
|
||||
else
|
||||
{
|
||||
options.video.filter = DEFAULT_VIDEO_FILTER;
|
||||
options.video.filter = DEFAULT_VIDEO_FILTER;
|
||||
}
|
||||
}},
|
||||
{"video.shaders", [](const std::string &v)
|
||||
@@ -246,7 +246,7 @@ bool setOptions(const std::string &var, const std::string &value)
|
||||
}
|
||||
else
|
||||
{
|
||||
options.video.border.width = DEFAULT_BORDER_WIDTH;
|
||||
options.video.border.width = DEFAULT_BORDER_WIDTH;
|
||||
}
|
||||
}},
|
||||
{"video.border.height", [](const std::string &v)
|
||||
@@ -258,7 +258,7 @@ bool setOptions(const std::string &var, const std::string &value)
|
||||
}
|
||||
else
|
||||
{
|
||||
options.video.border.height = DEFAULT_BORDER_HEIGHT;
|
||||
options.video.border.height = DEFAULT_BORDER_HEIGHT;
|
||||
}
|
||||
}},
|
||||
{"video.palette", [](const std::string &v)
|
||||
|
||||
Reference in New Issue
Block a user