mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01: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:
parent
51bfed2032
commit
0c5024f7e7
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue