Rev 8596 | Rev 8655 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8596 | Rev 8645 | ||
---|---|---|---|
Line 1208... | Line 1208... | ||
1208 | 1208 | ||
1209 | // initialize SDL |
1209 | // initialize SDL |
1210 | #if defined _WIN32 |
1210 | #if defined _WIN32 |
1211 | putenv("SDL_VIDEODRIVER=directx"); |
1211 | putenv("SDL_VIDEODRIVER=directx"); |
1212 | #endif |
1212 | #endif |
1213 | if(SDL_Init(SDL_INIT_VIDEO /*| SDL_INIT_AUDIO | SDL_INIT_JOYSTICK*/) < 0) |
1213 | if(SDL_Init(SDL_INIT_VIDEO) < 0) |
1214 | { |
1214 | { |
1215 | printf("Unable to init SDL: %s\n", SDL_GetError()); |
1215 | printf("Unable to init SDL: %s\n", SDL_GetError()); |
1216 | exit(1); |
1216 | exit(1); |
- | 1217 | } |
|
1217 | } |
1218 | SDL_AudioInit(NULL); |
Line 1218... | Line 1219... | ||
1218 | atexit(SDL_Quit); |
1219 | atexit(SDL_Quit); |
1219 | 1220 | ||
1220 | int numJoysticks = SDL_NumJoysticks(); |
1221 | int numJoysticks = SDL_NumJoysticks(); |
Line 1230... | Line 1231... | ||
1230 | #if defined(GP2X_940) |
1231 | #if defined(GP2X_940) |
1231 | GP2X_MemoryInit(); |
1232 | GP2X_MemoryInit(); |
1232 | #endif |
1233 | #endif |
Line 1233... | Line 1234... | ||
1233 | 1234 | ||
- | 1235 | SignonScreen (); |
|
1234 | SignonScreen (); |
1236 | #ifdef _KOLIBRI |
- | 1237 | kolibri_set_win_center(); |
|
Line 1235... | Line 1238... | ||
1235 | kolibri_set_win_center(); |
1238 | #endif |
1236 | 1239 | ||
1237 | #if defined _WIN32 |
1240 | #if defined _WIN32 |
1238 | if(!fullscreen) |
1241 | if(!fullscreen) |
Line 1884... | Line 1887... | ||
1884 | { |
1887 | { |
1885 | if(hasError) printf("\n"); |
1888 | if(hasError) printf("\n"); |
1886 | printf( |
1889 | printf( |
1887 | "Wolf4SDL v1.7 ($Revision$)\n" |
1890 | "Wolf4SDL v1.7 ($Revision$)\n" |
1888 | "Ported by Chaos-Software (http://www.chaos-software.de.vu)\n" |
1891 | "Ported by Chaos-Software (http://www.chaos-software.de.vu)\n" |
- | 1892 | #ifdef _KOLIBRI |
|
- | 1893 | "Ported for KolibriOS by 'turbocat2001' and 'maxcodehack'\n" |
|
- | 1894 | #endif |
|
1889 | "Original Wolfenstein 3D by id Software\n\n" |
1895 | "Original Wolfenstein 3D by id Software\n\n" |
1890 | "Usage: Wolf4SDL [options]\n" |
1896 | "Usage: Wolf4SDL [options]\n" |
1891 | "Options:\n" |
1897 | "Options:\n" |
1892 | " --help This help page\n" |
1898 | " --help This help page\n" |
1893 | " --tedlevel |
1899 | " --tedlevel |
1894 | " --baby Sets the difficulty to baby for tedlevel\n" |
1900 | " --baby Sets the difficulty to baby for tedlevel\n" |
1895 | " --easy Sets the difficulty to easy for tedlevel\n" |
1901 | " --easy Sets the difficulty to easy for tedlevel\n" |
1896 | " --normal Sets the difficulty to normal for tedlevel\n" |
1902 | " --normal Sets the difficulty to normal for tedlevel\n" |
1897 | " --hard Sets the difficulty to hard for tedlevel\n" |
1903 | " --hard Sets the difficulty to hard for tedlevel\n" |
1898 | " --nowait Skips intro screens\n" |
1904 | " --nowait Skips intro screens\n" |
- | 1905 | #ifndef _KOLIBRI |
|
1899 | " --windowed[-mouse] Starts the game in a window [and grabs mouse]\n" |
1906 | " --windowed[-mouse] Starts the game in a window [and grabs mouse]\n" |
1900 | " --res |
1907 | " --res |
- | 1908 | #endif |
|
1901 | " (must be multiple of 320x200 or 320x240)\n" |
1909 | " (must be multiple of 320x200 or 320x240)\n" |
1902 | " --resf |
1910 | " --resf |
1903 | " (which may result in graphic errors)\n" |
1911 | " (which may result in graphic errors)\n" |
1904 | " --bits Sets the screen color depth\n" |
1912 | " --bits Sets the screen color depth\n" |
1905 | " (use this when you have palette/fading problems\n" |
1913 | " (use this when you have palette/fading problems\n" |
1906 | " allowed: 8, 16, 24, 32, default: \"best\" depth)\n" |
1914 | " allowed: 8, 16, 24, 32, default: \"best\" depth)\n" |
1907 | " --nodblbuf Don't use SDL's double buffering\n" |
1915 | " --nodblbuf Don't use SDL's double buffering\n" |
1908 | " --extravbls |
1916 | " --extravbls |
1909 | " reduce flickering (unit is currently 8 ms, default: 0)\n" |
1917 | " reduce flickering (unit is currently 8 ms, default: 0)\n" |
- | 1918 | #ifndef _KOLIBRI |
|
1910 | " --joystick |
1919 | " --joystick |
1911 | " (-1 to disable joystick, default: 0)\n" |
1920 | " (-1 to disable joystick, default: 0)\n" |
1912 | " --joystickhat |
1921 | " --joystickhat |
- | 1922 | #endif |
|
1913 | " --samplerate |
1923 | " --samplerate |
1914 | " --audiobuffer |
1924 | " --audiobuffer |
1915 | " (given in bytes, default: 2048 / (44100 / samplerate))\n" |
1925 | " (given in bytes, default: 2048 / (44100 / samplerate))\n" |
1916 | " --ignorenumchunks Ignores the number of chunks in VGAHEAD.*\n" |
1926 | " --ignorenumchunks Ignores the number of chunks in VGAHEAD.*\n" |
1917 | " (may be useful for some broken mods)\n" |
1927 | " (may be useful for some broken mods)\n" |