aboutsummaryrefslogtreecommitdiff
path: root/kyra/staticres.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2005-12-28 21:34:40 +0000
committerJohannes Schickel2005-12-28 21:34:40 +0000
commitf7b49851264843b6e24c57dcbf9ca4751d6dae2f (patch)
tree2616d8ee99b8e8dd2dad90ae12042c8aea1200b8 /kyra/staticres.cpp
parentb7a2b9d31f4e56355a929c64aba1fc2fdbd0fe4d (diff)
downloadscummvm-rg350-f7b49851264843b6e24c57dcbf9ca4751d6dae2f.tar.gz
scummvm-rg350-f7b49851264843b6e24c57dcbf9ca4751d6dae2f.tar.bz2
scummvm-rg350-f7b49851264843b6e24c57dcbf9ca4751d6dae2f.zip
Implemented:
- cmd_magicInMouseItem - cmd_poisonDeathNow - cmd_poisonBrandonAndRemaps - cmd_playFluteAnimation Also implemented healing function for brandon. And implemented poison death sequence. svn-id: r19841
Diffstat (limited to 'kyra/staticres.cpp')
-rw-r--r--kyra/staticres.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/kyra/staticres.cpp b/kyra/staticres.cpp
index b691a54f2c..07ccb8773a 100644
--- a/kyra/staticres.cpp
+++ b/kyra/staticres.cpp
@@ -26,7 +26,7 @@
namespace Kyra {
-#define RESFILE_VERSION 7
+#define RESFILE_VERSION 8
#define GAME_FLAGS (GF_FLOPPY | GF_TALKIE | GF_DEMO | GF_AUDIOCD)
#define LANGUAGE_FLAGS (GF_ENGLISH | GF_FRENCH | GF_GERMAN | GF_SPANISH | GF_LNGUNK)
@@ -221,6 +221,12 @@ void KyraEngine::res_loadResources(int type) {
loadShapes(resFile, "HEALING.SHP", &_healingShapeTable, &_healingShapeTableSize);
loadShapes(resFile, "HEALING2.SHP", &_healingShape2Table, &_healingShape2TableSize);
+
+ res_loadLangTable("THEPOISON.", &resFile, (byte***)&_thePoison, &_thePoison_Size, loadNativeLanguage);
+ res_loadLangTable("FLUTE.", &resFile, (byte***)&_fluteString, &_fluteString_Size, loadNativeLanguage);
+
+ loadShapes(resFile, "POISONDEATH.SHP", &_posionDeathShapeTable, &_posionDeathShapeTableSize);
+ loadShapes(resFile, "FLUTE.SHP", &_fluteAnimShapeTable, &_fluteAnimShapeTableSize);
}
#undef loadRooms
@@ -285,6 +291,15 @@ void KyraEngine::res_unloadResources(int type) {
delete [] _healingShape2Table;
_healingShape2TableSize = 0;
+
+ res_freeLangTable(&_thePoison, &_thePoison_Size);
+ res_freeLangTable(&_fluteString, &_fluteString_Size);
+
+ delete [] _posionDeathShapeTable;
+ _posionDeathShapeTableSize = 0;
+
+ delete [] _fluteAnimShapeTable;
+ _fluteAnimShapeTableSize = 0;
}
}