aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devtools/create_cryo/create_led_dat.cpp5
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);