mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 17:52:29 +00:00
feat(profile): add model related info
This commit is contained in:
parent
156b0e0a0b
commit
2b598e6dd1
62 changed files with 25665 additions and 8034 deletions
|
|
@ -2,9 +2,7 @@
|
|||
#define SYSTEM_DETECT_H
|
||||
|
||||
#if !defined(IDA) && !defined(GHIDRA) && !defined(BINANA_GENERATOR)
|
||||
|
||||
#error "Preprocessor mode not detected! You must define either IDA or GHIDRA or BINANA_GENERATOR"
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(IDA)
|
||||
|
|
@ -20,4 +18,4 @@
|
|||
|
||||
#define DECLARE_STRUCT(T) typedef struct T T
|
||||
|
||||
#endif
|
||||
#endif
|
||||
6
profile/3.3.5a-windows/include/system/limits.h
Normal file
6
profile/3.3.5a-windows/include/system/limits.h
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#ifndef SYSTEM_LIMITS_H
|
||||
#define SYSTEM_LIMITS_H
|
||||
|
||||
#define INT_MAX 2147483647
|
||||
|
||||
#endif
|
||||
|
|
@ -37,4 +37,41 @@ typedef char bool;
|
|||
|
||||
#endif
|
||||
|
||||
// stddef
|
||||
#if defined(GHIDRA)
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#else
|
||||
|
||||
typedef uint32_t size_t;
|
||||
|
||||
#endif
|
||||
|
||||
// stdarg
|
||||
|
||||
#if defined(GHIDRA)
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#else
|
||||
|
||||
typedef char* va_list;
|
||||
|
||||
#endif
|
||||
|
||||
// other types
|
||||
|
||||
typedef struct fixed16 fixed16;
|
||||
struct fixed16 {
|
||||
int16_t n;
|
||||
};
|
||||
|
||||
struct ubyte4 {
|
||||
union {
|
||||
uint8_t b[4];
|
||||
uint32_t u;
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue