update kyradat tool

svn-id: r31562
This commit is contained in:
Florian Kagerer 2008-04-18 19:14:44 +00:00
parent b1d00dbdf1
commit 6a74374d36
4 changed files with 35 additions and 2 deletions

View File

@ -31,7 +31,7 @@
#include "md5.h"
enum {
kKyraDatVersion = 23,
kKyraDatVersion = 24,
kIndexSize = 12
};
@ -224,6 +224,7 @@ const ExtractFilename extractFilenames[] = {
{ k2IngameTalkObjIndex, kTypeRawData, "I_TALKOBJECTS.MAP" },
{ k2IngameTimJpStrings, kTypeStringList, "I_TIMJPSTR.TXT" },
{ k2IngameItemAnimData, k2TypeShpDataV2, "I_INVANIM.SHP" },
{ k2IngameTlkDemoStrings, kTypeLanguageList, "I_TLKDEMO.TXT" },
{ -1, 0, 0 }
};

View File

@ -162,6 +162,7 @@ enum kExtractID {
k2IngameTalkObjIndex,
k2IngameTimJpStrings,
k2IngameItemAnimData,
k2IngameTlkDemoStrings,
kMaxResIDs
};
@ -200,7 +201,11 @@ enum kSpecial {
k2FloppyFile1 = 15,
k2FloppyFile2 = 16,
k2DemoVersion = 17
k2DemoVersion = 17,
k2DemoVersionTlkE = 18,
k2DemoVersionTlkF = 19,
k2DemoVersionTlkG = 20
};
struct SpecialExtension {

View File

@ -7,7 +7,26 @@ const ExtractEntry kyra2Demo[] = {
{ -1, 0, 0 }
};
const ExtractEntry kyra2DemoCDE[] = {
{ k2IngameTlkDemoStrings, 0x0002F367, 0x0002F432 },
{ -1, 0, 0 }
};
const ExtractEntry kyra2DemoCDF[] = {
{ k2IngameTlkDemoStrings, 0x0002F432, 0x0002F4F0 },
{ -1, 0, 0 }
};
const ExtractEntry kyra2DemoCDG[] = {
{ k2IngameTlkDemoStrings, 0x0002F4F0, 0x0002F5CC },
{ -1, 0, 0 }
};
const Game kyra2Demos[] = {
{ kKyra2, EN_ANY, k2DemoVersion, "a620a37579dd44ab0403482285e3897f", kyra2Demo},
{ kKyra2, EN_ANY, k2CDFile2E, "fa54d8abfe05f9186c05f7de7eaf1480", kyra2DemoCDE},
{ kKyra2, FR_FRA, k2CDFile2F, "fa54d8abfe05f9186c05f7de7eaf1480", kyra2DemoCDF},
{ kKyra2, DE_DEU, k2CDFile2G, "fa54d8abfe05f9186c05f7de7eaf1480", kyra2DemoCDG},
GAME_DUMMY_ENTRY
};

View File

@ -455,6 +455,11 @@ const int kyra2DemoNeed[] = {
-1
};
const int kyra2TlkDemoNeed[] = {
k2IngameTlkDemoStrings,
-1
};
const GameNeed gameNeedTable[] = {
{ kKyra1, -1, kyra1FloppyNeed },
{ kKyra1, kTalkieVersion, kyra1CDNeed },
@ -476,6 +481,9 @@ const GameNeed gameNeedTable[] = {
{ kKyra2, k2TownsFile2E , kyra2TownsFile2EngNeed },
{ kKyra2, k2TownsFile2J, kyra2TownsFile2JapNeed },
{ kKyra2, k2DemoVersion, kyra2DemoNeed},
{ kKyra2, k2DemoVersionTlkE, kyra2TlkDemoNeed},
{ kKyra2, k2DemoVersionTlkF, kyra2TlkDemoNeed},
{ kKyra2, k2DemoVersionTlkG, kyra2TlkDemoNeed},
{ -1, -1, 0 }
};