opcions per defecte d'emscripten

This commit is contained in:
2026-04-16 13:40:21 +02:00
parent 550e3e0e12
commit 7f26b8dbd0
3 changed files with 38 additions and 2 deletions

View File

@@ -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");