Ticket #8793: createKyradat(demoOffsetEntry).patch
File createKyradat(demoOffsetEntry).patch, 2.3 KB (added by , 16 years ago) |
---|
-
create_kyradat.cpp
208 208 { k2SeqplayFinaleTracks, kTypeStringList, "S_FINALE.TRA" }, 209 209 { k2SeqplayIntroCDA, kTypeRawData, "S_INTRO.CDA" }, 210 210 { k2SeqplayFinaleCDA, kTypeRawData, "S_FINALE.CDA" }, 211 { k2SeqplayShapeDefs, kTypeRawData, "S_DEMO.SHP" }, 211 212 212 213 // Ingame 213 214 { k2IngamePakFiles, kTypeStringList, "I_PAKFILES.TXT" }, … … 253 254 void createFilename(char *dstFilename, const int gid, const int lang, const int special, const char *filename) { 254 255 strcpy(dstFilename, filename); 255 256 256 static const char *gidExtensions[] = { "", ".K2", ".K3" }; 257 static const char *gidExtensions[] = { "", ".K2", ".K3" }; 257 258 strcat(dstFilename, gidExtensions[gid]); 258 259 259 260 for (const SpecialExtension *specialE = specialTable; specialE->special != -1; ++specialE) { … … 276 277 } 277 278 } 278 279 279 static const char *gidExtensions[] = { "", ".K2", ".K3" }; 280 static const char *gidExtensions[] = { "", ".K2", ".K3" }; 280 281 strcat(dstFilename, gidExtensions[gid]); 281 282 282 283 for (const SpecialExtension *specialE = specialTable; specialE->special != -1; ++specialE) { -
create_kyradat.h
152 152 k2SeqplayFinaleTracks, 153 153 k2SeqplayIntroCDA, 154 154 k2SeqplayFinaleCDA, 155 k2SeqplayShapeDefs, 155 156 156 157 k2IngamePakFiles, 157 158 k2IngameSfxFiles, … … 206 207 207 208 enum kGame { 208 209 kKyra1 = 0, 209 kKyra2 = 1,210 kKyra3 = 2210 kKyra2, 211 kKyra3 211 212 }; 212 213 213 214 struct Game { -
hof_demo.h
3 3 { k2SeqplaySfxFiles, 0x0001CDDE, 0x0001CEBC }, 4 4 { k2SeqplaySeqData, 0x0001C920, 0x0001CB9C }, 5 5 { k2SeqplayIntroTracks, 0x0001CEBC, 0x0001CECC }, 6 { k2SeqplayShapeDefs, 0x0001CC14, 0x0001CCCC }, 6 7 { -1, 0, 0 } 7 8 }; 8 9 -
misc.h
443 443 k2SeqplaySeqData, 444 444 k2SeqplaySfxFiles, 445 445 k2SeqplayIntroTracks, 446 k2SeqplayShapeDefs, 446 447 -1 447 448 }; 448 449