match _minigameDLL rel
This commit is contained in:
parent
2b5aa27571
commit
a56c5b37af
5 changed files with 34 additions and 1 deletions
|
|
@ -4,3 +4,10 @@ Sections:
|
|||
.dtors type:rodata align:4
|
||||
.rodata type:rodata align:8
|
||||
.data type:data align:8
|
||||
|
||||
REL/executor.c:
|
||||
.text start:0x00000000 end:0x000000A0
|
||||
|
||||
REL/_minigameDLL/_minigameDLL.c:
|
||||
.text start:0x000000A0 end:0x000000F0
|
||||
.data start:0x00000000 end:0x00000014
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
_prolog = .text:0x00000000; // type:function size:0x54 scope:global
|
||||
_epilog = .text:0x00000054; // type:function size:0x4C scope:global
|
||||
fn_1_A0 = .text:0x000000A0; // type:function size:0x2C
|
||||
ModuleProlog = .text:0x000000A0; // type:function size:0x2C
|
||||
fn_1_CC = .text:0x000000CC; // type:function size:0x24
|
||||
_ctors = .ctors:0x00000000; // type:label scope:global data:4byte
|
||||
_dtors = .dtors:0x00000000; // type:label scope:global data:4byte
|
||||
|
|
|
|||
10
configure.py
Normal file → Executable file
10
configure.py
Normal file → Executable file
|
|
@ -230,6 +230,16 @@ config.libs = [
|
|||
Object(Matching, "REL/empty.c"), # Must be marked as matching
|
||||
],
|
||||
},
|
||||
{
|
||||
"lib": "_minigameDLL",
|
||||
"mw_version": config.linker_version,
|
||||
"cflags": cflags_rel,
|
||||
"host": False,
|
||||
"objects": [
|
||||
Object(Matching, "REL/executor.c"),
|
||||
Object(Matching, "REL/_minigameDLL/_minigameDLL.c"),
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
if args.mode == "configure":
|
||||
|
|
|
|||
6
include/common.h
Normal file
6
include/common.h
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#ifndef _COMMON_H_
|
||||
#define _COMMON_H_
|
||||
|
||||
void OSReport(const char * format, ...);
|
||||
|
||||
#endif
|
||||
10
src/REL/_minigameDLL/_minigameDLL.c
Normal file
10
src/REL/_minigameDLL/_minigameDLL.c
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#include "REL/executor.h"
|
||||
#include "common.h"
|
||||
|
||||
void ModuleProlog(void) {
|
||||
OSReport("minigame dll setup\n");
|
||||
}
|
||||
|
||||
unsigned char fn_1_CC(void) {
|
||||
return fn_80005A30();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue