opcions per defecte d'emscripten
This commit is contained in:
@@ -39,6 +39,15 @@ SDL_AppResult SDL_AppInit(void** /*appstate*/, int /*argc*/, char* /*argv*/[]) {
|
||||
Options::setConfigFile(std::string(file_getconfigfolder()) + "config.yaml");
|
||||
Options::loadFromFile();
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
// MEMFS no persistix entre recàrregues: força valors sensats per a web.
|
||||
Options::window.fullscreen = false;
|
||||
Options::window.zoom = 1;
|
||||
Options::video.aspect_ratio_4_3 = true;
|
||||
Options::video.integer_scale = true;
|
||||
Options::video.stretch_filter_linear = true;
|
||||
#endif
|
||||
|
||||
// Carrega textos (idioma per defecte: valencià)
|
||||
Locale::load("locale/ca.yaml");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user