forked from jaildesigner-jailgames/jaildoctors_dilemma
Treballant en la caché de les paletes
This commit is contained in:
@@ -21,7 +21,7 @@ void initOptions()
|
||||
options = Options();
|
||||
|
||||
#ifdef DEBUG
|
||||
options.section = SectionState(Section::ENDING2, Subsection::NONE);
|
||||
options.section = SectionState(Section::LOGO, Subsection::LOGO_TO_INTRO);
|
||||
options.console = true;
|
||||
#else
|
||||
options.section = SectionState(Section::LOGO, Subsection::LOGO_TO_INTRO);
|
||||
@@ -148,25 +148,25 @@ bool saveOptionsToFile(const std::string &file_path)
|
||||
|
||||
file << "\n## VIDEO\n";
|
||||
file << "# Modo de video: 0 = Ventana, 1 = Pantalla completa, 2 = Pantalla completa (escritorio)\n";
|
||||
file << "video.mode " << options.video.mode << "\n";
|
||||
file << "video.mode " << options.video.mode << "\n\n";
|
||||
file << "# Filtro de pantalla: 0 = Nearest, 1 = Linear\n";
|
||||
file << "video.filter " << static_cast<int>(options.video.filter) << "\n";
|
||||
file << "video.filter " << static_cast<int>(options.video.filter) << "\n\n";
|
||||
file << "# Shaders: 1 = Activado, 0 = Desactivado\n";
|
||||
file << "video.shaders " << boolToString(options.video.shaders) << "\n";
|
||||
file << "video.shaders " << boolToString(options.video.shaders) << "\n\n";
|
||||
file << "# Sincronización vertical: 1 = Activado, 0 = Desactivado\n";
|
||||
file << "video.vertical_sync " << boolToString(options.video.vertical_sync) << "\n";
|
||||
file << "video.vertical_sync " << boolToString(options.video.vertical_sync) << "\n\n";
|
||||
file << "# Escalado entero: 1 = Activado, 0 = Desactivado\n";
|
||||
file << "video.integer_scale " << boolToString(options.video.integer_scale) << "\n";
|
||||
file << "video.integer_scale " << boolToString(options.video.integer_scale) << "\n\n";
|
||||
file << "# Mantener aspecto: 1 = Activado, 0 = Desactivado\n";
|
||||
file << "video.keep_aspect " << boolToString(options.video.keep_aspect) << "\n";
|
||||
file << "video.keep_aspect " << boolToString(options.video.keep_aspect) << "\n\n";
|
||||
file << "# Borde: 1 = Activado, 0 = Desactivado\n";
|
||||
file << "video.border.enabled " << boolToString(options.video.border.enabled) << "\n";
|
||||
file << "video.border.enabled " << boolToString(options.video.border.enabled) << "\n\n";
|
||||
file << "# Ancho del borde\n";
|
||||
file << "video.border.width " << options.video.border.width << "\n";
|
||||
file << "video.border.width " << options.video.border.width << "\n\n";
|
||||
file << "# Alto del borde\n";
|
||||
file << "video.border.height " << options.video.border.height << "\n";
|
||||
file << "# Paleta: 0 = ZX Spectrum, 1 = ZX Arne\n";
|
||||
file << "video.palette " << static_cast<int>(options.video.palette) << "\n";
|
||||
file << "video.border.height " << options.video.border.height << "\n\n";
|
||||
file << "# Paleta:\n";
|
||||
file << "video.palette " << options.video.palette << "\n";
|
||||
|
||||
// Cierra el fichero
|
||||
file.close();
|
||||
@@ -263,10 +263,10 @@ bool setOptions(const std::string &var, const std::string &value)
|
||||
}},
|
||||
{"video.palette", [](const std::string &v)
|
||||
{
|
||||
int val = safeStoi(v, static_cast<int>(DEFAULT_PALETTE));
|
||||
if (val == static_cast<int>(Palette::ZXSPECTRUM) || val == static_cast<int>(Palette::ZXARNE))
|
||||
std::string val = v;
|
||||
if (val == "arreglar" || val == "esto")
|
||||
{
|
||||
options.video.palette = static_cast<Palette>(val);
|
||||
options.video.palette = val;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user