From 0c5024f7e740fabb33bf267da06431b14f8288de Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 23 Sep 2021 22:18:45 -0700 Subject: [PATCH] Use fixed-size int types for resourceheader Since this refers to specific exported file data, let's make sure this is portable. I'm not sure if we'll ever ship on systems where sizeof(int) != 4 or sizeof(bool) != 1, but better to be safer and future-proof than not. --- desktop_version/src/BinaryBlob.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/desktop_version/src/BinaryBlob.h b/desktop_version/src/BinaryBlob.h index 6306313f..f8089930 100644 --- a/desktop_version/src/BinaryBlob.h +++ b/desktop_version/src/BinaryBlob.h @@ -2,6 +2,7 @@ #define BINARYBLOB_H #include +#include /* Laaaazyyyyyyy -flibit */ // #define VVV_COMPILEMUSIC @@ -27,9 +28,9 @@ struct resourceheader { char name[48]; - int start_UNUSED; - int size; - bool valid; + int32_t start_UNUSED; + int32_t size; + uint8_t valid; }; class binaryBlob