Split and matched nisDll

This commit is contained in:
dbalatoni13 2024-11-15 04:12:57 +01:00
parent 038bbc6380
commit e804f78fb3
4 changed files with 31 additions and 1 deletions

View file

@ -3,3 +3,6 @@ Sections:
.ctors type:rodata align:4
.dtors type:rodata align:4
.data type:data align:8
REL/nisDll/main.c:
.text start:0x00000000 end:0x0000017C

View file

@ -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
_prolog = .text:0x00000094; // type:function size:0x9C scope:global
_epilog = .text:0x00000130; // type:function size:0x4C scope:global

View file

@ -1386,6 +1386,12 @@ config.libs = [
Object(NonMatching, "REL/mstoryDll/save.c"),
},
),
Rel(
"nisDll",
objects={
Object(Matching, "REL/nisDll/main.c")
},
),
Rel(
"option",
objects={

21
src/REL/nisDll/main.c Normal file
View 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"