forked from jaildesigner-jailgames/jaildoctors_dilemma
millores en la pantalla de càrrega de recursos
This commit is contained in:
@@ -183,14 +183,6 @@ auto saveToFile(const std::string& file_path) -> bool {
|
||||
auto setOptions(const std::string& var, const std::string& value) -> bool {
|
||||
static const std::unordered_map<std::string, std::function<void(const std::string&)>> OPTION_HANDLERS = {
|
||||
{"version", [](const std::string& v) { version = v; }},
|
||||
{"keys", [](const std::string& v) {
|
||||
int val = safeStoi(v, static_cast<int>(GameDefaults::CONTROL_SCHEME));
|
||||
if (val == static_cast<int>(ControlScheme::CURSOR) || val == static_cast<int>(ControlScheme::OPQA) || val == static_cast<int>(ControlScheme::WASD)) {
|
||||
keys = static_cast<ControlScheme>(val);
|
||||
} else {
|
||||
keys = GameDefaults::CONTROL_SCHEME;
|
||||
}
|
||||
}},
|
||||
{"window.zoom", [](const std::string& v) {
|
||||
int val = safeStoi(v, GameDefaults::WINDOW_ZOOM);
|
||||
if (val > 0) {
|
||||
|
||||
Reference in New Issue
Block a user