diff options
author | ptitSeb | 2017-12-02 11:20:03 +0100 |
---|---|---|
committer | ptitSeb | 2017-12-02 11:20:03 +0100 |
commit | 8b0a7091f58ee0b5ff68af9e4b14afc0ea6d6fe8 (patch) | |
tree | af63204f1872a8e66e9578f588aacfb450d869f4 /src/main.c | |
parent | ba427aba2f50a9ec34befc8369af8e9f71758554 (diff) | |
download | hydracastlelabyrinth-8b0a7091f58ee0b5ff68af9e4b14afc0ea6d6fe8.tar.gz hydracastlelabyrinth-8b0a7091f58ee0b5ff68af9e4b14afc0ea6d6fe8.tar.bz2 hydracastlelabyrinth-8b0a7091f58ee0b5ff68af9e4b14afc0ea6d6fe8.zip |
Added option for Fullscreen and various screen scalling (from x1 to x4, default to x2)
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -38,6 +38,31 @@ int main(int argc, char **argv) sdmcInit(); osSetSpeedupEnable(false); #endif + #ifdef _SDL + #ifdef PANDORA + wantFullscreen = 1; + #else + wantFullscreen = 0; + #endif + screenScale = 2; + // get command line arguments + for (int i=1; i<argc; i++) + { + if(!strcmp(argv[i], "-f")) + wantFullscreen = 1; + if(!strcmp(argv[i], "--fullscreen")) + wantFullscreen = 1; + if(!strcmp(argv[i], "-x1")) + screenScale = 1; + if(!strcmp(argv[i], "-x2")) + screenScale = 2; + if(!strcmp(argv[i], "-x3")) + screenScale = 3; + if(!strcmp(argv[i], "-x4")) + screenScale = 4; + } + printf("Hydra Caslte Labyrinth, %s scale=x%d\n", wantFullscreen?"Fullscreen":"Windowed", screenScale); + #endif srand(time(NULL)); createSaveLocations(); |