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)" *
|
cd "$(RELEASE_FOLDER)" && tar -czvf "../$(LINUX_RELEASE)" *
|
||||||
|
|
||||||
# Elimina la carpeta temporal
|
# 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
|
// 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");
|
const std::string paramFilePath = paramFileArgument == "--320x240" ? asset->get("param_320x240.txt") : asset->get("param_320x256.txt");
|
||||||
|
#endif
|
||||||
loadParams(paramFilePath);
|
loadParams(paramFilePath);
|
||||||
|
|
||||||
// Carga el fichero de configuración
|
// Carga el fichero de configuración
|
||||||
@@ -491,8 +496,13 @@ void Director::initOptions()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Opciones de video
|
// Opciones de video
|
||||||
|
#ifdef ANBERNIC
|
||||||
options->video.mode = 0;
|
options->video.mode = 0;
|
||||||
options->video.window.size = 3;
|
options->video.window.size = 3;
|
||||||
|
#else
|
||||||
|
options->video.mode = 0;
|
||||||
|
options->video.window.size = 2;
|
||||||
|
#endif
|
||||||
options->video.filter = SCREEN_FILTER_NEAREST;
|
options->video.filter = SCREEN_FILTER_NEAREST;
|
||||||
options->video.vSync = true;
|
options->video.vSync = true;
|
||||||
options->video.integerScale = true;
|
options->video.integerScale = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user