Añadido #ifdef ANBERNIC

This commit is contained in:
2024-09-23 19:11:16 +02:00
parent 0cd14aa320
commit 998b151c00

View File

@@ -47,7 +47,12 @@ Director::Director(int argc, char *argv[])
}
// Carga los parametros para configurar el juego
#ifdef ANBERNIC
const std::string paramFilePath = asset->get("param_320x240.txt");
#else
const std::string paramFilePath = paramFileArgument == "--320x240" ? asset->get("param_320x240.txt") : asset->get("param_320x256.txt");
#endif
loadParams(paramFilePath);
// Carga el fichero de configuración
@@ -491,8 +496,13 @@ void Director::initOptions()
#endif
// Opciones de video
#ifdef ANBERNIC
options->video.mode = 0;
options->video.window.size = 3;
#else
options->video.mode = 0;
options->video.window.size = 2;
#endif
options->video.filter = SCREEN_FILTER_NEAREST;
options->video.vSync = true;
options->video.integerScale = true;