Compare commits
2 Commits
159a75a60e
...
998b151c00
| Author | SHA1 | Date | |
|---|---|---|---|
| 998b151c00 | |||
| 0cd14aa320 |
15
Makefile
15
Makefile
@@ -247,4 +247,17 @@ linux_release:
|
||||
cd "$(RELEASE_FOLDER)" && tar -czvf "../$(LINUX_RELEASE)" *
|
||||
|
||||
# Elimina la carpeta temporal
|
||||
$(RM) "$(RELEASE_FOLDER)"
|
||||
$(RM) "$(RELEASE_FOLDER)"
|
||||
|
||||
anbernic:
|
||||
# Elimina carpetas previas
|
||||
$(RM) "$(RELEASE_FOLDER)"_anbernic
|
||||
|
||||
# Crea la carpeta temporal para realizar el lanzamiento
|
||||
mkdir -p "$(RELEASE_FOLDER)"_anbernic
|
||||
|
||||
# Copia ficheros
|
||||
cp -R data "$(RELEASE_FOLDER)"_anbernic
|
||||
|
||||
# Complia
|
||||
$(CXX) $(SOURCES) -D ANBERNIC -D NO_SHADERS -D ARCADE -D VERBOSE $(CXXFLAGS) $(LDFLAGS) -o $(RELEASE_FOLDER)_anbernic/$(TARGET_NAME).game
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user