From 800fc0722df4c39b8fac5fcfec14802358894533 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 28 Feb 2014 01:27:32 +0100 Subject: DEVTOOLS: Rewrite create_kyradat. Now static data is directly stored inside source code files which allows the tool to generate kyra.dat without any additional input. This will make supporting fan translations easier, since only the localized strings have to be added and an appropriate game entry has to be added. --- devtools/create_kyradat/resources/lok_dos_demo.h | 112 +++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 devtools/create_kyradat/resources/lok_dos_demo.h (limited to 'devtools/create_kyradat/resources/lok_dos_demo.h') diff --git a/devtools/create_kyradat/resources/lok_dos_demo.h b/devtools/create_kyradat/resources/lok_dos_demo.h new file mode 100644 index 0000000000..c8f09337de --- /dev/null +++ b/devtools/create_kyradat/resources/lok_dos_demo.h @@ -0,0 +1,112 @@ +static const byte k1WestwoodLogoSeqDOSDemo[68] = { + 0x00, 0x02, 0x01, 0x02, 0x02, 0x00, 0x00, 0x00, + 0x00, 0x16, 0x01, 0x06, 0x06, 0x00, 0x06, 0x3C, + 0x00, 0x0A, 0x00, 0x03, 0x02, 0x16, 0x01, 0x0B, + 0x00, 0x08, 0x00, 0x06, 0x3C, 0x00, 0x0A, 0x01, + 0x03, 0x02, 0x16, 0x01, 0x0B, 0x01, 0x0B, 0x00, + 0x06, 0x78, 0x00, 0x02, 0x02, 0x0A, 0x00, 0x00, + 0x00, 0x16, 0x01, 0x06, 0x06, 0x00, 0x0A, 0x02, + 0x04, 0x02, 0x16, 0x01, 0x0B, 0x02, 0x09, 0x00, + 0x13, 0x01, 0x02, 0x1A +}; + +static const ByteProvider k1WestwoodLogoSeqDOSDemoProvider = { ARRAYSIZE(k1WestwoodLogoSeqDOSDemo), k1WestwoodLogoSeqDOSDemo }; + +static const byte k1KyrandiaLogoSeqDOSDemo[84] = { + 0x15, 0x00, 0x02, 0x00, 0x05, 0x01, 0x02, 0x05, + 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x06, 0x06, + 0x00, 0x06, 0x3C, 0x00, 0x0A, 0x00, 0x03, 0x05, + 0x16, 0x00, 0x0B, 0x00, 0x0B, 0x00, 0x06, 0x3C, + 0x00, 0x0A, 0x01, 0x03, 0x05, 0x16, 0x00, 0x0B, + 0x01, 0x0F, 0x00, 0x06, 0x3C, 0x00, 0x0A, 0x02, + 0x04, 0x05, 0x16, 0x00, 0x0B, 0x02, 0x0F, 0x00, + 0x02, 0x05, 0x0D, 0x00, 0x00, 0x00, 0x16, 0x00, + 0x06, 0x06, 0x00, 0x06, 0x78, 0x00, 0x0A, 0x02, + 0x04, 0x05, 0x16, 0x00, 0x0B, 0x02, 0x0C, 0x00, + 0x13, 0x01, 0x05, 0x1A +}; + +static const ByteProvider k1KyrandiaLogoSeqDOSDemoProvider = { ARRAYSIZE(k1KyrandiaLogoSeqDOSDemo), k1KyrandiaLogoSeqDOSDemo }; + +static const char *const k1IntroCPSStringsDOSDemo[1] = { + "mal-kal.cps" +}; + +static const StringListProvider k1IntroCPSStringsDOSDemoProvider = { ARRAYSIZE(k1IntroCPSStringsDOSDemo), k1IntroCPSStringsDOSDemo }; + +static const char *const k1IntroCOLStringsDOSDemo[7] = { + "kallak.col", + "demo1.col", + "demo2.col", + "demo3.col", + "demo4.col", + "ww.col", + "mal-kal.col" +}; + +static const StringListProvider k1IntroCOLStringsDOSDemoProvider = { ARRAYSIZE(k1IntroCOLStringsDOSDemo), k1IntroCOLStringsDOSDemo }; + +static const char *const k1IntroWSAStringsDOSDemo[7] = { + "kallak.wsa", + "demo1.wsa", + "westwood.wsa", + "demo2.wsa", + "demo3.wsa", + "kyrandia.wsa", + "demo4.wsa" +}; + +static const StringListProvider k1IntroWSAStringsDOSDemoProvider = { ARRAYSIZE(k1IntroWSAStringsDOSDemo), k1IntroWSAStringsDOSDemo }; + +static const byte k1Demo1SeqDOSDemo[38] = { + 0x00, 0x01, 0x00, 0x0C, 0x01, 0x02, 0x01, 0x00, + 0x00, 0x00, 0x00, 0x09, 0x14, 0x06, 0x01, 0x00, + 0x06, 0x3C, 0x00, 0x0A, 0x00, 0x03, 0x01, 0x06, + 0x04, 0x00, 0x0B, 0x00, 0x19, 0x00, 0x06, 0x78, + 0x00, 0x13, 0x0E, 0x01, 0x01, 0x1A +}; + +static const ByteProvider k1Demo1SeqDOSDemoProvider = { ARRAYSIZE(k1Demo1SeqDOSDemo), k1Demo1SeqDOSDemo }; + +static const byte k1Demo2SeqDOSDemo[35] = { + 0x00, 0x03, 0x00, 0x0C, 0x02, 0x02, 0x03, 0x00, + 0x00, 0x00, 0x00, 0x09, 0x14, 0x06, 0x01, 0x00, + 0x06, 0x3C, 0x00, 0x0A, 0x00, 0x03, 0x03, 0x06, + 0x04, 0x00, 0x0B, 0x00, 0x71, 0x00, 0x13, 0x0E, + 0x01, 0x03, 0x1A +}; + +static const ByteProvider k1Demo2SeqDOSDemoProvider = { ARRAYSIZE(k1Demo2SeqDOSDemo), k1Demo2SeqDOSDemo }; + +static const byte k1Demo3SeqDOSDemo[89] = { + 0x00, 0x04, 0x00, 0x0C, 0x03, 0x02, 0x04, 0x00, + 0x00, 0x00, 0x00, 0x09, 0x14, 0x0A, 0x00, 0x03, + 0x04, 0x06, 0x07, 0x00, 0x03, 0x04, 0x06, 0x07, + 0x00, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x06, + 0x07, 0x00, 0x0B, 0x00, 0x0E, 0x00, 0x03, 0x04, + 0x06, 0x07, 0x00, 0x03, 0x04, 0x06, 0x07, 0x00, + 0x0A, 0x01, 0x03, 0x04, 0x06, 0x07, 0x00, 0x0B, + 0x01, 0x0B, 0x00, 0x0A, 0x02, 0x02, 0x04, 0x0F, + 0x00, 0x00, 0x00, 0x06, 0x07, 0x00, 0x03, 0x04, + 0x06, 0x07, 0x00, 0x03, 0x04, 0x06, 0x07, 0x00, + 0x0B, 0x02, 0x13, 0x00, 0x13, 0x0E, 0x01, 0x04, + 0x1A +}; + +static const ByteProvider k1Demo3SeqDOSDemoProvider = { ARRAYSIZE(k1Demo3SeqDOSDemo), k1Demo3SeqDOSDemo }; + +static const byte k1Demo4SeqDOSDemo[32] = { + 0x00, 0x06, 0x00, 0x0C, 0x04, 0x02, 0x06, 0x00, + 0x00, 0x00, 0x00, 0x09, 0x14, 0x0A, 0x00, 0x03, + 0x06, 0x06, 0x04, 0x00, 0x0B, 0x00, 0x39, 0x00, + 0x06, 0x5A, 0x00, 0x13, 0x0E, 0x01, 0x06, 0x1A +}; + +static const ByteProvider k1Demo4SeqDOSDemoProvider = { ARRAYSIZE(k1Demo4SeqDOSDemo), k1Demo4SeqDOSDemo }; + +static const char *const k1AudioTracksIntroDOSDemo[1] = { + "intro" +}; + +static const StringListProvider k1AudioTracksIntroDOSDemoProvider = { ARRAYSIZE(k1AudioTracksIntroDOSDemo), k1AudioTracksIntroDOSDemo }; + -- cgit v1.2.3