mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
Add missing TUs for Wii/Shield retail (+ filename cleanup) (#3072)
* Fix GCN_mem_alloc.c filename capitalization * Fix up TRK file names in Wii/Shield splits * Add string_TRK * Add cc_gdev * Add Shield-only wstring TUs * Implement NdevExi2A * Add missing JSystem TUs (more are still missing from ShieldD) * Clean up includes
This commit is contained in:
@@ -43,7 +43,10 @@ public:
|
||||
virtual void init(const Vec& param_0, const Mtx&) = 0;
|
||||
virtual void calc() = 0;
|
||||
|
||||
static J3DMtxBuffer* getMtxBuffer() { return mMtxBuffer; }
|
||||
static J3DMtxBuffer* getMtxBuffer() {
|
||||
J3D_ASSERT_NULLPTR(174, mMtxBuffer != NULL)
|
||||
return mMtxBuffer;
|
||||
}
|
||||
static J3DJoint* getJoint() {
|
||||
J3D_ASSERT_NULLPTR(185, mJoint != NULL)
|
||||
return mJoint;
|
||||
@@ -234,4 +237,12 @@ struct J3DMtxCalcCalcTransformBasic {
|
||||
static void calcTransform(J3DTransformInfo const&);
|
||||
};
|
||||
|
||||
inline s32 checkScaleOne(const Vec& param_0) {
|
||||
if (param_0.x == 1.0f && param_0.y == 1.0f && param_0.z == 1.0f) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* J3DJOINT_H */
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef J3DUFUR_H
|
||||
#define J3DUFUR_H
|
||||
|
||||
// NONMATCHING
|
||||
|
||||
#endif /* J3DUFUR_H */
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef J3DUMOTION_H
|
||||
#define J3DUMOTION_H
|
||||
|
||||
// NONMATCHING
|
||||
|
||||
#endif /* J3DUMOTION_H */
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef J3DUSHADOW_H
|
||||
#define J3DUSHADOW_H
|
||||
|
||||
// NONMATCHING
|
||||
|
||||
#endif /* J3DUSHADOW_H */
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef JAUAUDIENCE_H
|
||||
#define JAUAUDIENCE_H
|
||||
|
||||
// NONMATCHING
|
||||
|
||||
#endif /* JAUAUDIENCE_H */
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef JAUSOUNDOBJECT_H
|
||||
#define JAUSOUNDOBJECT_H
|
||||
|
||||
// NONMATCHING
|
||||
|
||||
#endif /* JAUSOUNDOBJECT_H */
|
||||
@@ -0,0 +1,54 @@
|
||||
#ifndef NDEVEXI2A_DEBUGGERDRIVER_H
|
||||
#define NDEVEXI2A_DEBUGGERDRIVER_H
|
||||
|
||||
#include <dolphin/os.h>
|
||||
#include "types.h"
|
||||
|
||||
typedef void (*MtrCallback)(s32, OSContext*);
|
||||
typedef void (*IntrCallback)(s16, OSContext*);
|
||||
|
||||
#include <NdevExi2A/DebuggerDriver.h>
|
||||
|
||||
static u32 ODEMUGetSize(u32 mail);
|
||||
|
||||
static void __DBMtrHandler(s32 param_0, OSContext* ctx);
|
||||
|
||||
static void __DBIntrHandler(s16 param_0, OSContext* ctx);
|
||||
|
||||
u8 __DBReadUSB_CSR();
|
||||
|
||||
void __DBReadMailbox(u32* out);
|
||||
|
||||
void __DBCheckMailBox(void);
|
||||
|
||||
BOOL __DBWriteMailbox(u32 val);
|
||||
|
||||
BOOL __DBRead(u32 param_0, void* dst, u32 count);
|
||||
|
||||
BOOL __DBWrite(u32 param_0, void* src, u32 count);
|
||||
|
||||
void DBInitComm(u8** a, MtrCallback callback);
|
||||
|
||||
void DBInitInterrupts(void);
|
||||
|
||||
BOOL ODEMUIsValidMail(u32 mail);
|
||||
|
||||
u32 DBQueryData(void);
|
||||
|
||||
u32 ODEMUGetPage(u32 v);
|
||||
|
||||
u32 ODEMUGetPc2NngcOffset(u32 v);
|
||||
|
||||
BOOL DBRead(u32* buffer, s32 count);
|
||||
|
||||
void __DBWaitForSendMail();
|
||||
|
||||
u32 ODEMUGenMailData(u32 v, u32 size);
|
||||
|
||||
BOOL DBWrite(void* src, u32 size);
|
||||
|
||||
void DBOpen(void);
|
||||
|
||||
void DBClose(void);
|
||||
|
||||
#endif /* NDEVEXI2A_DEBUGGERDRIVER_H */
|
||||
@@ -0,0 +1,34 @@
|
||||
#ifndef NDEVEXI2A_EXI2_H
|
||||
#define NDEVEXI2A_EXI2_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
BOOL __EXI2Select();
|
||||
|
||||
BOOL __EXI2Deselect();
|
||||
|
||||
BOOL __EXI2Sync();
|
||||
|
||||
BOOL __EXI2Imm(u32* param_0, int width, int param_2);
|
||||
|
||||
void __DBEXIInit();
|
||||
|
||||
BOOL __DBEXIReadReg(u32 param_0, void* dst, u32 param_2);
|
||||
|
||||
BOOL __DBEXIWriteReg(u32 param_0, void* src, u32 width);
|
||||
|
||||
BOOL __DBEXIReadRam(u32 param_0, void* dst, int count);
|
||||
|
||||
BOOL __DBEXIWriteRam(u32 param_0, void* src, int count);
|
||||
|
||||
u32 __EXISwap32(u32 v);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /* NDEVEXI2A_EXI2_H */
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef METROTRK_PORTABLE_STRING_TRK_H
|
||||
#define METROTRK_PORTABLE_STRING_TRK_H
|
||||
|
||||
int TRK_strlen(const char* str);
|
||||
|
||||
#endif /* METROTRK_PORTABLE_STRING_TRK_H */
|
||||
@@ -0,0 +1,22 @@
|
||||
#ifndef ODEMUEXI_DEBUGGERDRIVER_H
|
||||
#define ODEMUEXI_DEBUGGERDRIVER_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
typedef void (*MTRCallbackType)(int);
|
||||
|
||||
void DBInitComm(u8** a, MTRCallbackType b);
|
||||
|
||||
void DBInitInterrupts(void);
|
||||
|
||||
u32 DBQueryData(void);
|
||||
|
||||
BOOL DBRead(u32* buffer, s32 count);
|
||||
|
||||
BOOL DBWrite(void* src, u32 size);
|
||||
|
||||
void DBOpen(void);
|
||||
|
||||
void DBClose(void);
|
||||
|
||||
#endif /* ODEMUEXI_DEBUGGERDRIVER_H */
|
||||
Reference in New Issue
Block a user