WIP Recompile
This commit is contained in:
8
game_re/binders/gh_auto_shared.h
Normal file
8
game_re/binders/gh_auto_shared.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef DF40ED2B_5659_43AA_8A22_499A89C4BD62
|
||||
#define DF40ED2B_5659_43AA_8A22_499A89C4BD62
|
||||
|
||||
#include "gh_types.h"
|
||||
#include "gh_static_mem.h"
|
||||
#include "../gh_global.h"
|
||||
|
||||
#endif /* DF40ED2B_5659_43AA_8A22_499A89C4BD62 */
|
3
game_re/binders/gh_static_mem.cxx
Normal file
3
game_re/binders/gh_static_mem.cxx
Normal file
@@ -0,0 +1,3 @@
|
||||
#include "gh_static_mem.h"
|
||||
|
||||
unsigned char gh_static_mem[GH_STATIC_MEM_SIZE];
|
12
game_re/binders/gh_static_mem.h
Normal file
12
game_re/binders/gh_static_mem.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef A18E3E17_2A80_4DBD_96CD_1CE0120A164E
|
||||
#define A18E3E17_2A80_4DBD_96CD_1CE0120A164E
|
||||
|
||||
#define GH_STATIC_MEM_START 0x005b6400
|
||||
#define GH_STATIC_MEM_END 0x00843fff
|
||||
#define GH_STATIC_MEM_SIZE (GH_STATIC_MEM_END - GH_STATIC_MEM_START)
|
||||
|
||||
extern unsigned char gh_static_mem[GH_STATIC_MEM_SIZE];
|
||||
|
||||
#define GH_STATIC(addr) (*(unsigned char *)(gh_static_mem + (addr - GH_STATIC_MEM_START)))
|
||||
|
||||
#endif /* A18E3E17_2A80_4DBD_96CD_1CE0120A164E */
|
20
game_re/binders/gh_types.h
Normal file
20
game_re/binders/gh_types.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef A523F6DB_0645_4DEB_8AEB_3792CB732B49
|
||||
#define A523F6DB_0645_4DEB_8AEB_3792CB732B49
|
||||
|
||||
// Header included in all decompiled files to fix some common recompilation issues
|
||||
#include <stdint.h>
|
||||
#include <Windows.h>
|
||||
#include <stdio.h>
|
||||
|
||||
// Fallback to int if type is not annotated
|
||||
typedef int64_t undefined;
|
||||
typedef uint32_t undefined4;
|
||||
typedef uint16_t undefined2;
|
||||
typedef unsigned char byte;
|
||||
typedef byte undefined1;
|
||||
typedef uint64_t uint;
|
||||
typedef void* pointer;
|
||||
typedef char *TerminatedCString;
|
||||
typedef char *string;
|
||||
|
||||
#endif /* A523F6DB_0645_4DEB_8AEB_3792CB732B49 */
|
Reference in New Issue
Block a user