diff options
author | Gregory Montoir | 2007-02-21 20:27:48 +0000 |
---|---|---|
committer | Gregory Montoir | 2007-02-21 20:27:48 +0000 |
commit | 948630c3b452cdfd480c7f6fe9398bcda57501d7 (patch) | |
tree | 2c8de196552036b81861c91bbcec4fe86ca2cbac /tools/qtable/qtable.c | |
parent | 098bcc2fe88220f6ff656d6f42beabc55b2bf8d9 (diff) | |
download | scummvm-rg350-948630c3b452cdfd480c7f6fe9398bcda57501d7.tar.gz scummvm-rg350-948630c3b452cdfd480c7f6fe9398bcda57501d7.tar.bz2 scummvm-rg350-948630c3b452cdfd480c7f6fe9398bcda57501d7.zip |
added initial support for FOTAQ amiga versions
svn-id: r25769
Diffstat (limited to 'tools/qtable/qtable.c')
-rw-r--r-- | tools/qtable/qtable.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/tools/qtable/qtable.c b/tools/qtable/qtable.c index 8844af2e8c..82885abbbf 100644 --- a/tools/qtable/qtable.c +++ b/tools/qtable/qtable.c @@ -65,6 +65,10 @@ typedef struct GameVersion { #include "fat_pc_demo_pcgames.h" #include "fat_pc_demo.h" #include "fat_pc_interview.h" +#include "fat_amiga_eng_floppy.h" +#include "fat_amiga_demo.h" +#include "fat_amiga_interview.h" + #define FAT(x) x, (sizeof(x)/sizeof(x[0])) @@ -81,11 +85,14 @@ static GameVersion gameVersionsTable[] = { { "CHM10", 190705558, FAT(fatHebCd), 0 }, { "PE100", 3724538, FAT(fatPCDemoPcGames), 0 }, { "PE100", 3732177, FAT(fatPCDemo), 0 }, - { "PEint", 1915913, FAT(fatPCInterview), 0 } + { "PEint", 1915913, FAT(fatPCInterview), 0 }, + { "aEM10", 351775, FAT(fatAmigaEngFl), 0 }, + { "CE101", 563335, FAT(fatAmigaDemo), 0 }, + { "PE100", 597032, FAT(fatAmigaInterview), 0 } }; static const uint32 QTBL_TAG = 0x5154424C; -static const uint32 CURRENT_VERSION = 1; +static const uint32 CURRENT_VERSION = 2; static void writeByte(FILE *fp, uint8 b) { fwrite(&b, 1, 1, fp); @@ -113,7 +120,7 @@ static void createTableFile(TableFile *tf) { uint16 i, j; uint32 offset; /* dump offset */ - /* setup file entries table */ + /* setup file entries table */ assert(ARRAYSIZE(gameVersionsTable) < MAX_VERSIONS); for (i = 0; i < ARRAYSIZE(gameVersionsTable); ++i) { const GameVersion *gv = &gameVersionsTable[i]; @@ -121,7 +128,7 @@ static void createTableFile(TableFile *tf) { tf->dataFileEntriesTable[i].fileEntriesCount = gv->dataFileEntriesCount; } tf->dataFileEntriesTableCount = ARRAYSIZE(gameVersionsTable); - + /* write queen table file */ out = fopen(tf->outfile, "wb"); if (!out) { @@ -129,7 +136,7 @@ static void createTableFile(TableFile *tf) { return; } /* write header tag */ - writeUint32BE(out, QTBL_TAG); + writeUint32BE(out, QTBL_TAG); /* write version */ writeUint32BE(out, CURRENT_VERSION); /* write tables */ |