TETRAEDGE: Register config defaults

This commit is contained in:
Matthew Duggan 2023-02-24 10:04:13 +09:00
parent 598ba6e2b4
commit 79f830af0c
2 changed files with 16 additions and 0 deletions

View File

@ -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();

View File

@ -142,6 +142,7 @@ public:
private:
void configureSearchPaths();
void registerConfigDefaults();
};
extern TetraedgeEngine *g_engine;