summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game_instance.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/game_instance.cpp b/src/game/game_instance.cpp
index 120491715..df52ca91a 100644
--- a/src/game/game_instance.cpp
+++ b/src/game/game_instance.cpp
@@ -89,6 +89,8 @@ GameInstance::GameInstance() :
void GameInstance::Initialize(GameInfo *info)
{
+ this->versionAPI = info->GetAPIVersion();
+
/* Register the GameController */
SQGSController_Register(this->engine);
@@ -192,6 +194,8 @@ void GameInstance::RegisterAPI()
SQGSWindow_Register(this->engine);
RegisterGameTranslation(this->engine);
+
+ if (!this->LoadCompatibilityScripts(this->versionAPI, GAME_DIR)) this->Died();
}
int GameInstance::GetSetting(const char *name)