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
|
||||
|
||||
#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
|
||||
|
|
Loading…
Reference in a new issue