WIP Recompile

This commit is contained in:
2024-09-16 01:42:27 +08:00
parent 5ac970ecdc
commit 556fa70207
16 changed files with 2115 additions and 197 deletions

View 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 */

View File

@@ -0,0 +1,3 @@
#include "gh_static_mem.h"
unsigned char gh_static_mem[GH_STATIC_MEM_SIZE];

View 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 */

View 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 */