el fitxer de parametres es guarda en options/config.txt

This commit is contained in:
2025-08-17 21:42:26 +02:00
parent 1e9e664012
commit 2819b3628e
4 changed files with 6 additions and 2 deletions

View File

@@ -124,9 +124,9 @@ void Director::close() {
void Director::loadParams() {
// Carga los parametros para configurar el juego
#ifdef ANBERNIC
const std::string paramFilePath = asset->get("param_320x240.txt");
const std::string PARAM_FILE_PATH = Asset::get()->get("param_320x240.txt");
#else
const std::string PARAM_FILE_PATH = overrides.param_file == "--320x240" ? Asset::get()->get("param_320x240.txt") : Asset::get()->get("param_red.txt");
const std::string PARAM_FILE_PATH = Asset::get()->get(Options::settings.params_file);
#endif
loadParamsFromFile(PARAM_FILE_PATH);
}