New plugin file format
This commit is contained in:
@ -4,6 +4,8 @@
|
||||
#define VERSION_STRING "1.50-300"
|
||||
#define VERSION 03000
|
||||
#define MAGIC_HEADER 0x414D5842
|
||||
#define MAGIC_HEADER2 0x414D5858
|
||||
#define MAGIC_VERSION 0x0300
|
||||
|
||||
#ifdef __linux__
|
||||
# include <dlfcn.h>
|
||||
@ -23,6 +25,7 @@
|
||||
#endif
|
||||
|
||||
#include "zlib.h"
|
||||
#include "Binary.h"
|
||||
|
||||
typedef int (*COMPILER)(int argc, char **argv);
|
||||
typedef int (*PRINTF)(const char *message, ...);
|
||||
@ -48,4 +51,20 @@ struct abl
|
||||
char *cmp;
|
||||
};
|
||||
|
||||
struct BinHeader
|
||||
{
|
||||
int32_t magic;
|
||||
int16_t version;
|
||||
int8_t plugins;
|
||||
};
|
||||
|
||||
struct BinPlugin
|
||||
{
|
||||
int8_t cellsize; //cell size
|
||||
int32_t imagesize; //uncompressed image size
|
||||
int32_t disksize; //compressed image size
|
||||
int32_t memsize; //memory image size
|
||||
int32_t offs; //file offset
|
||||
};
|
||||
|
||||
#endif //_AMXXSC_INCLUDE_H
|
||||
|
Reference in New Issue
Block a user