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
1 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@
#define BINARYBLOB_H
#include <stddef.h>
#include <stdint.h>
/* 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