Acabat de renamar, encara que he descobert cosetes i tindré que fer altra pasaeta
Actualitzat stb_image.h a la última versió
This commit is contained in:
@@ -39,7 +39,7 @@ void initOptions()
|
||||
|
||||
// Opciones de juego
|
||||
options.game.difficulty = GameDifficulty::NORMAL;
|
||||
options.game.language = lang::ba_BA;
|
||||
options.game.language = lang::Code::ba_BA;
|
||||
options.game.autofire = true;
|
||||
|
||||
// Opciones de control
|
||||
@@ -139,9 +139,9 @@ bool loadOptionsFile(std::string file_path)
|
||||
options.video.window.size = 3;
|
||||
}
|
||||
|
||||
if (options.game.language < 0 || options.game.language > 2)
|
||||
if (options.game.language != lang::Code::en_UK && options.game.language != lang::Code::ba_BA && options.game.language != lang::Code::es_ES)
|
||||
{
|
||||
options.game.language = lang::en_UK;
|
||||
options.game.language = lang::Code::en_UK;
|
||||
}
|
||||
|
||||
return success;
|
||||
@@ -207,7 +207,7 @@ bool saveOptionsFile(std::string file_path)
|
||||
file << "## game.difficulty [" << value_difficulty_easy << ": easy, " << value_difficulty_normal << ": normal, " << value_difficulty_hard << ": hard]\n";
|
||||
file << "\n";
|
||||
|
||||
file << "game.language=" + std::to_string(options.game.language) + "\n";
|
||||
file << "game.language=" + std::to_string(static_cast<int>(options.game.language)) + "\n";
|
||||
file << "game.difficulty=" + std::to_string(static_cast<int>(options.game.difficulty)) + "\n";
|
||||
file << "game.autofire=" + boolToString(options.game.autofire) + "\n";
|
||||
|
||||
@@ -304,7 +304,7 @@ bool setOptions(std::string var, std::string value)
|
||||
// Opciones de juego
|
||||
else if (var == "game.language")
|
||||
{
|
||||
options.game.language = std::stoi(value);
|
||||
options.game.language = static_cast<lang::Code>(std::stoi(value));
|
||||
}
|
||||
|
||||
else if (var == "game.difficulty")
|
||||
|
||||
Reference in New Issue
Block a user