mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 18:06:26 +00:00
TETRAEDGE: Register config defaults
This commit is contained in:
parent
598ba6e2b4
commit
79f830af0c
@ -195,6 +195,19 @@ bool TetraedgeEngine::onKeyUp(const Common::KeyState &state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void TetraedgeEngine::registerConfigDefaults() {
|
||||
// The skips are mostly for debugging to jump straight to certain
|
||||
// things. If they are all enabled you get into a new game as
|
||||
// soon as possible.
|
||||
ConfMan.registerDefault("skip_videos", false);
|
||||
ConfMan.registerDefault("skip_splash", false);
|
||||
ConfMan.registerDefault("skip_mainmenu", false);
|
||||
ConfMan.registerDefault("skip_confirm", false);
|
||||
|
||||
ConfMan.registerDefault("disable_shadows", false);
|
||||
ConfMan.registerDefault("correct_movie_aspect", true);
|
||||
}
|
||||
|
||||
Common::Error TetraedgeEngine::run() {
|
||||
if (getGameId() == "syberia")
|
||||
_gameType = kSyberia;
|
||||
@ -205,6 +218,8 @@ Common::Error TetraedgeEngine::run() {
|
||||
else
|
||||
error("Unknown game id %s", getGameId().c_str());
|
||||
|
||||
registerConfigDefaults();
|
||||
|
||||
configureSearchPaths();
|
||||
// from BasicOpenGLView::prepareOpenGL..
|
||||
_application = new Application();
|
||||
|
@ -142,6 +142,7 @@ public:
|
||||
|
||||
private:
|
||||
void configureSearchPaths();
|
||||
void registerConfigDefaults();
|
||||
};
|
||||
|
||||
extern TetraedgeEngine *g_engine;
|
||||
|
Loading…
x
Reference in New Issue
Block a user