Split and matched nisDll
This commit is contained in:
parent
038bbc6380
commit
e804f78fb3
4 changed files with 31 additions and 1 deletions
|
|
@ -3,3 +3,6 @@ Sections:
|
||||||
.ctors type:rodata align:4
|
.ctors type:rodata align:4
|
||||||
.dtors type:rodata align:4
|
.dtors type:rodata align:4
|
||||||
.data type:data align:8
|
.data type:data align:8
|
||||||
|
|
||||||
|
REL/nisDll/main.c:
|
||||||
|
.text start:0x00000000 end:0x0000017C
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
fn_1_0 = .text:0x00000000; // type:function size:0x68
|
ObjectSetup = .text:0x00000000; // type:function size:0x68
|
||||||
fn_1_68 = .text:0x00000068; // type:function size:0x2C
|
fn_1_68 = .text:0x00000068; // type:function size:0x2C
|
||||||
_prolog = .text:0x00000094; // type:function size:0x9C scope:global
|
_prolog = .text:0x00000094; // type:function size:0x9C scope:global
|
||||||
_epilog = .text:0x00000130; // type:function size:0x4C scope:global
|
_epilog = .text:0x00000130; // type:function size:0x4C scope:global
|
||||||
|
|
|
||||||
|
|
@ -1386,6 +1386,12 @@ config.libs = [
|
||||||
Object(NonMatching, "REL/mstoryDll/save.c"),
|
Object(NonMatching, "REL/mstoryDll/save.c"),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
Rel(
|
||||||
|
"nisDll",
|
||||||
|
objects={
|
||||||
|
Object(Matching, "REL/nisDll/main.c")
|
||||||
|
},
|
||||||
|
),
|
||||||
Rel(
|
Rel(
|
||||||
"option",
|
"option",
|
||||||
objects={
|
objects={
|
||||||
|
|
|
||||||
21
src/REL/nisDll/main.c
Normal file
21
src/REL/nisDll/main.c
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
#include "game/object.h"
|
||||||
|
|
||||||
|
void fn_1_68(omObjData *object);
|
||||||
|
|
||||||
|
void ObjectSetup(void)
|
||||||
|
{
|
||||||
|
Process *process = omInitObjMan(0xA, 0x2000);
|
||||||
|
omObjData *object = omAddObjEx(process, 0, 0, 0, -1, fn_1_68);
|
||||||
|
u32 *work = object->work;
|
||||||
|
}
|
||||||
|
|
||||||
|
void fn_1_68(omObjData *object)
|
||||||
|
{
|
||||||
|
s8 *work = (s8 *)object->work;
|
||||||
|
if (*work != 0) {
|
||||||
|
(void)work;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "src/REL/executor.c"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue