mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
CRYO: Add ID and versioning to cryo.dat
This commit is contained in:
parent
fdc3baeeff
commit
4858b3fc58
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user