mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-02 15:32:19 +03: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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user