Do AppThread

This commit is contained in:
intns 2021-10-05 03:01:46 +01:00
parent e863925d01
commit f8a16fd257
5 changed files with 30 additions and 22 deletions

View File

@ -19,6 +19,7 @@ Some of this progress may be outdated, or a branch other than main (workshop or
### DONE
- sysBootupU/sysBootup.cpp
- sysCommonU/id32.cpp
- sysGCU/appThread.cpp
- plugProjectKandoU/TSoundEvent.cpp
- plugProjectHikinoU/PSCreatureMgr.cpp

11
include/AppThread.h Normal file
View File

@ -0,0 +1,11 @@
#ifndef _APPTHREAD_H
#define _APPTHREAD_H
#include "JSystem/JKRThread.h"
struct AppThread : public JKRThread {
AppThread(unsigned long, int, int);
virtual ~AppThread();
};
#endif

View File

@ -0,0 +1,13 @@
#ifndef _JSYSTEM_JKRTHREAD_H
#define _JSYSTEM_JKRTHREAD_H
#include "types.h"
struct JKRThread {
JKRThread(unsigned long, int, int);
virtual ~JKRThread();
virtual void run();
};
#endif

View File

@ -851,7 +851,7 @@ TEXT_O_FILES:=\
$(BUILD_DIR)/asm/sysGCU/gameflow.o\
$(BUILD_DIR)/asm/sysGCU/menuSection.o\
$(BUILD_DIR)/asm/sysGCU/dvdThread.o\
$(BUILD_DIR)/asm/sysGCU/appThread.o\
$(BUILD_DIR)/src/sysGCU/appThread.o\
$(BUILD_DIR)/asm/sysGCU/controller.o\
$(BUILD_DIR)/asm/sysGCU/graphics.o\
$(BUILD_DIR)/asm/sysGCU/matMath.o\

View File

@ -1,28 +1,11 @@
#include "AppThread.h"
/*
* --INFO--
* Address: 80424E18
* Size: 00003C
*/
void AppThread::AppThread(unsigned long, int, int)
AppThread::AppThread(unsigned long r3, int r4, int r5)
: JKRThread(r3, r4, r5)
{
/*
.loc_0x0:
stwu r1, -0x10(r1)
mflr r0
stw r0, 0x14(r1)
stw r31, 0xC(r1)
mr r31, r3
bl -0x3FF7F4
lis r4, 0x804F
mr r3, r31
subi r0, r4, 0x44A8
stw r0, 0x0(r31)
lwz r31, 0xC(r1)
lwz r0, 0x14(r1)
mtlr r0
addi r1, r1, 0x10
blr
*/
}
}