From ccacf6f82e5c5e112ef165d45233359d8a654407 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 14 Jan 2005 01:17:34 +0000 Subject: o Added support for German ITE. There are also Puzzle-related messages hardcoded, but I'll save that for later :) o Eliminated all leftovers of previous language loader. If you'll spot another one, just remove it silently. svn-id: r16556 --- saga/game.cpp | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'saga/game.cpp') diff --git a/saga/game.cpp b/saga/game.cpp index 5eb2cc5a0f..4c8aebcff8 100644 --- a/saga/game.cpp +++ b/saga/game.cpp @@ -689,37 +689,6 @@ int SagaEngine::initGame(void) { warning("Error loading game resource files."); return FAILURE; } - // Load dialogue file - loadLanguage(); - - return SUCCESS; -} - -int SagaEngine::loadLanguage(void) { - char lang_file[MAXPATH]; - File test_file; - - - if (getGameType() == GType_ITE) { - snprintf(lang_file, MAXPATH, "%s%s.%s", GAME_ITE_LANG_PREFIX, _gameLanguage, GAME_LANG_EXT); - if (!test_file.open(lang_file)) { - debug(0, "Couldn't open language file %s. Using default (US English)", lang_file); - return SUCCESS; - } - - test_file.close(); - - if (_vm->_scene->ITEIntroRegisterLang() != SUCCESS) { - warning("Error registering intro sequence language cvars"); - return FAILURE; - } - - debug(0, "Using language file %s.", lang_file); - // FIXME - //CFG_Read(lang_path); - } else { - debug(0, "Language support for this game not implemented."); - } return SUCCESS; } -- cgit v1.2.3