mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2024-11-01 23:26:57 +00:00
Add SFall Misc->SkipOpeningMovies (#30)
This commit is contained in:
parent
dd20063a2e
commit
2991877b13
@ -155,7 +155,11 @@ int gameInitWithOptions(const char* windowTitle, bool isMapper, int font, int a4
|
||||
}
|
||||
}
|
||||
|
||||
if (!gIsMapper) {
|
||||
// SFALL: Allow to skip splash screen
|
||||
int skipOpeningMovies = 0;
|
||||
configGetInt(&gSfallConfig, SFALL_CONFIG_MISC_KEY, SFALL_CONFIG_SKIP_OPENING_MOVIES_KEY, &skipOpeningMovies);
|
||||
|
||||
if (!gIsMapper && skipOpeningMovies < 2) {
|
||||
showSplash();
|
||||
}
|
||||
|
||||
|
11
src/main.cc
11
src/main.cc
@ -132,9 +132,14 @@ int falloutMain(int argc, char** argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
gameMoviePlay(MOVIE_IPLOGO, GAME_MOVIE_FADE_IN);
|
||||
gameMoviePlay(MOVIE_INTRO, 0);
|
||||
gameMoviePlay(MOVIE_CREDITS, 0);
|
||||
// SFALL: Allow to skip intro movies
|
||||
int skipOpeningMovies;
|
||||
configGetInt(&gSfallConfig, SFALL_CONFIG_MISC_KEY, SFALL_CONFIG_SKIP_OPENING_MOVIES_KEY, &skipOpeningMovies);
|
||||
if(skipOpeningMovies < 1) {
|
||||
gameMoviePlay(MOVIE_IPLOGO, GAME_MOVIE_FADE_IN);
|
||||
gameMoviePlay(MOVIE_INTRO, 0);
|
||||
gameMoviePlay(MOVIE_CREDITS, 0);
|
||||
}
|
||||
|
||||
FpsLimiter fpsLimiter;
|
||||
|
||||
|
@ -21,6 +21,7 @@ bool sfallConfigInit(int argc, char** argv)
|
||||
}
|
||||
|
||||
// Initialize defaults.
|
||||
configSetInt(&gSfallConfig, SFALL_CONFIG_MISC_KEY, SFALL_CONFIG_SKIP_OPENING_MOVIES_KEY, 0);
|
||||
configSetString(&gSfallConfig, SFALL_CONFIG_MISC_KEY, SFALL_CONFIG_STARTING_MAP_KEY, "");
|
||||
|
||||
char path[COMPAT_MAX_PATH];
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
#define SFALL_CONFIG_MISC_KEY "Misc"
|
||||
|
||||
#define SFALL_CONFIG_SKIP_OPENING_MOVIES_KEY "SkipOpeningMovies"
|
||||
#define SFALL_CONFIG_STARTING_MAP_KEY "StartingMap"
|
||||
|
||||
extern bool gSfallConfigInitialized;
|
||||
|
Loading…
Reference in New Issue
Block a user