diff options
author | Filippos Karapetis | 2017-02-10 02:50:07 +0200 |
---|---|---|
committer | Filippos Karapetis | 2017-02-10 10:12:04 +0200 |
commit | c73270a3d38798c01dbc5bbc1937efacce79632b (patch) | |
tree | a692c587e57432cc84a3a33c1d70a9868bc33748 /devtools/create_cryo | |
parent | 8c7edfcc878edfa05dc8067a891c22d129acf6d0 (diff) | |
download | scummvm-rg350-c73270a3d38798c01dbc5bbc1937efacce79632b.tar.gz scummvm-rg350-c73270a3d38798c01dbc5bbc1937efacce79632b.tar.bz2 scummvm-rg350-c73270a3d38798c01dbc5bbc1937efacce79632b.zip |
CRYO: Add ID and versioning to cryo.dat
Diffstat (limited to 'devtools/create_cryo')
-rw-r--r-- | devtools/create_cryo/create_led_dat.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/devtools/create_cryo/create_led_dat.cpp b/devtools/create_cryo/create_led_dat.cpp index e58ee7512d..794dee3e32 100644 --- a/devtools/create_cryo/create_led_dat.cpp +++ b/devtools/create_cryo/create_led_dat.cpp @@ -26,6 +26,8 @@ #include "eden_icons.h" #include "eden_rooms.h" +#define CRYO_DAT_VER 1 // 1 byte + template <typename T> static void writeLE(FILE *f, T value) { for (int i = 0; i < sizeof(value); i++, value >>= 8) { @@ -84,6 +86,9 @@ static int emitData(char *outputFilename) { printf("Generating %s...\n", outputFilename); + fwrite("CRYODATA", 8, 1, f); + writeLE<byte>(f, CRYO_DAT_VER); + emitIcons(f); emitRooms(f); |