1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-05 10:49:41 +01:00
VVVVVV/desktop_version/src/BinaryBlob.h

44 lines
620 B
C
Raw Normal View History

2020-01-01 21:29:24 +01:00
#ifndef BINARYBLOB_H
#define BINARYBLOB_H
/* Laaaazyyyyyyy -flibit */
// #define VVV_COMPILEMUSIC
struct resourceheader
{
char name[48];
2020-06-15 13:37:05 +02:00
int start_UNUSED;
2020-01-01 21:29:24 +01:00
int size;
bool valid;
};
class binaryBlob
{
public:
binaryBlob();
#ifdef VVV_COMPILEMUSIC
void AddFileToBinaryBlob(const char* _path);
void writeBinaryBlob(const char* _name);
#endif
bool unPackBinary(const char* _name);
int getIndex(const char* _name);
int getSize(int _index);
char* getAddress(int _index);
2020-06-07 22:11:35 +02:00
void clear();
2020-01-01 21:29:24 +01:00
private:
int numberofHeaders;
resourceheader m_headers[128];
char* m_memblocks[128];
};
#endif /* BINARYBLOB_H */