1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-01 18:43:33 +02:00

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.
This commit is contained in:
Misa 2021-09-23 22:18:45 -07:00
parent 51bfed2032
commit 0c5024f7e7

View File

@ -2,6 +2,7 @@
#define BINARYBLOB_H #define BINARYBLOB_H
#include <stddef.h> #include <stddef.h>
#include <stdint.h>
/* Laaaazyyyyyyy -flibit */ /* Laaaazyyyyyyy -flibit */
// #define VVV_COMPILEMUSIC // #define VVV_COMPILEMUSIC
@ -27,9 +28,9 @@
struct resourceheader struct resourceheader
{ {
char name[48]; char name[48];
int start_UNUSED; int32_t start_UNUSED;
int size; int32_t size;
bool valid; uint8_t valid;
}; };
class binaryBlob class binaryBlob