mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-07 21:30:47 -04:00
JAIConst
This commit is contained in:
+1
-1
@@ -709,7 +709,7 @@ config.libs = [
|
||||
Object(NonMatching, "JSystem/JAudio/JAIAnimation.cpp"),
|
||||
Object(NonMatching, "JSystem/JAudio/JAIBasic.cpp"),
|
||||
Object(NonMatching, "JSystem/JAudio/JAIBankWave.cpp"),
|
||||
Object(NonMatching, "JSystem/JAudio/JAIConst.cpp"),
|
||||
Object(Matching, "JSystem/JAudio/JAIConst.cpp"),
|
||||
Object(Matching, "JSystem/JAudio/JAIDummyObject.cpp"),
|
||||
Object(NonMatching, "JSystem/JAudio/JAIFx.cpp"),
|
||||
Object(Matching, "JSystem/JAudio/JAIGlobalParameter.cpp"),
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define JAICONST_H
|
||||
|
||||
#include "JSystem/JMath/random.h"
|
||||
#include "dolphin/mtx/mtx.h"
|
||||
#include "dolphin/mtx/vec.h"
|
||||
|
||||
namespace JAInter {
|
||||
@@ -10,8 +11,42 @@ namespace JAInter {
|
||||
void deleteTmpDVDFile(u8**);
|
||||
u32 routeToTrack(u32);
|
||||
|
||||
class Actor {
|
||||
public:
|
||||
Actor(Vec* p1, Vec* p2, u32 p3, void* p4) {
|
||||
field_0x0 = p1;
|
||||
field_0x4 = p2;
|
||||
field_0x8 = p3;
|
||||
field_0xc = p4;
|
||||
}
|
||||
|
||||
// order is unclear
|
||||
Vec* field_0x0;
|
||||
Vec* field_0x4;
|
||||
u32 field_0x8;
|
||||
void* field_0xc;
|
||||
};
|
||||
|
||||
class Camera {
|
||||
public:
|
||||
Camera(Vec* p1 = NULL, Vec* p2 = NULL, MtxP p3 = NULL) {
|
||||
field_0x0 = p1;
|
||||
field_0x4 = p2;
|
||||
field_0x8 = p3;
|
||||
}
|
||||
Vec* field_0x0;
|
||||
Vec* field_0x4;
|
||||
MtxP field_0x8;
|
||||
};
|
||||
|
||||
namespace Const {
|
||||
extern Camera nullCamera;
|
||||
extern Actor nullActor;
|
||||
extern Mtx camMtx;
|
||||
extern Vec camTrans;
|
||||
extern Vec camPreTrans;
|
||||
extern Vec dummyZeroVec;
|
||||
extern u8 sCInfos_0[];
|
||||
extern JMath::TRandom_fast_ random;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,16 @@
|
||||
#include "JSystem/JKernel/JKRSolidHeap.h"
|
||||
#include "JSystem/JUtility/JUTAssert.h"
|
||||
|
||||
JAInter::Camera JAInter::Const::nullCamera(&camTrans, &camPreTrans, camMtx);
|
||||
JAInter::Actor JAInter::Const::nullActor(NULL, NULL, 0, NULL);
|
||||
Mtx JAInter::Const::camMtx;
|
||||
Vec JAInter::Const::camTrans;
|
||||
Vec JAInter::Const::camPreTrans;
|
||||
Vec JAInter::Const::dummyZeroVec = {0.0f, 0.0f, 0.0f};
|
||||
u8 JAInter::Const::sCInfos_0[] = {
|
||||
4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2,
|
||||
4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2,
|
||||
};
|
||||
JMath::TRandom_fast_ JAInter::Const::random(0);
|
||||
|
||||
/* 80291704-802917D8 .text transInitDataFile__7JAInterFPUcUl */
|
||||
@@ -47,6 +56,17 @@ void JAInter::deleteTmpDVDFile(u8** tmpPointer) {
|
||||
}
|
||||
|
||||
/* 802918FC-8029193C .text routeToTrack__7JAInterFUl */
|
||||
u32 JAInter::routeToTrack(u32) {
|
||||
/* Nonmatching */
|
||||
u32 JAInter::routeToTrack(u32 param_1) {
|
||||
u32 r4;
|
||||
u32 r5 = 0;
|
||||
r4 = param_1 & 0xF0000000;
|
||||
if (r4 == 0) {
|
||||
return 0;
|
||||
}
|
||||
if (r4 == 0x10000000) {
|
||||
r5 = 0x0F;
|
||||
} else if (r4 == 0x20000000) {
|
||||
r5 = 0xFF;
|
||||
}
|
||||
return param_1 & r5;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user