mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Hello WWWWWWorld!
This commit is contained in:
41
desktop_version/src/BinaryBlob.h
Normal file
41
desktop_version/src/BinaryBlob.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#ifndef BINARYBLOB_H
|
||||
#define BINARYBLOB_H
|
||||
|
||||
/* Laaaazyyyyyyy -flibit */
|
||||
// #define VVV_COMPILEMUSIC
|
||||
|
||||
struct resourceheader
|
||||
{
|
||||
char name[48];
|
||||
int start;
|
||||
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);
|
||||
|
||||
private:
|
||||
int numberofHeaders;
|
||||
resourceheader m_headers[128];
|
||||
char* m_memblocks[128];
|
||||
};
|
||||
|
||||
|
||||
#endif /* BINARYBLOB_H */
|
||||
Reference in New Issue
Block a user