mirror of
https://github.com/zeldaret/tp
synced 2026-07-10 23:22:01 -04:00
m_Do_main / f_ap_game / f_op_actor debug work and misc (#2744)
* m_Do_main / f_ap_game debug stuff * revolution sdk compatibility * f_op_actor debug work * rename fopAcM_SetupActor to fopAcM_ct * fix build * fix jp/pal splits
This commit is contained in:
@@ -162,7 +162,7 @@ struct J3DSys {
|
||||
Mtx& getModelDrawMtx(u16 no) { return mModelDrawMtx[no]; }
|
||||
J3DShapePacket* getShapePacket() { return mShapePacket; }
|
||||
|
||||
void setViewMtx(Mtx m) { MTXCopy(m, mViewMtx); }
|
||||
void setViewMtx(const Mtx m) { MTXCopy(m, mViewMtx); }
|
||||
|
||||
J3DModel* getModel() { return mModel; }
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
#ifndef J3DMODELSAVER_H
|
||||
#define J3DMODELSAVER_H
|
||||
|
||||
#include "JSystem/J3DGraphAnimator/J3DModel.h"
|
||||
|
||||
enum J3DBinaryDisplayListSaverFlag {
|
||||
J3DBinaryDisplayListSaverFlag_UNK_1 = 1,
|
||||
};
|
||||
|
||||
namespace J3DModelSaverDataBase {
|
||||
void* saveBinaryDisplayList(const J3DModel*, J3DBinaryDisplayListSaverFlag, u32);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -101,6 +101,9 @@ public:
|
||||
void resetFader() { setFader(NULL); }
|
||||
JUTFader* getFader() const { return mFader; }
|
||||
void setClearColor(JUtility::TColor color) { mClearColor = color; }
|
||||
int getEfbWidth() const { return JUTVideo::getManager()->getFbWidth(); }
|
||||
int getEfbHeight() const { return JUTVideo::getManager()->getEfbHeight(); }
|
||||
JUTXfb* getXfbManager() const { return mXfbManager; }
|
||||
|
||||
static JFWDisplay* sManager;
|
||||
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
#include "JSystem/JUtility/JUTAssert.h"
|
||||
|
||||
void JOR_MESSAGELOOP();
|
||||
void JOR_INIT();
|
||||
void JOR_SETROOTNODE(const char*, JORReflexible*, u32, u32);
|
||||
|
||||
u32 JORMessageBox(const char* message, const char* title, u32 style);
|
||||
|
||||
struct JOREventCallbackListNode {
|
||||
|
||||
@@ -89,6 +89,18 @@ inline JKRAramBlock *JKRMainRamToAram(u8 *buf, u32 bufSize, u32 alignedSize, JKR
|
||||
return JKRAram::mainRamToAram(buf, bufSize, alignedSize, expandSwitch, fileSize, heap, id, pSize);
|
||||
}
|
||||
|
||||
inline u32 JKRGetAramTotalFreeSize() {
|
||||
return JKRAram::getAramHeap()->getTotalFreeSize();
|
||||
}
|
||||
|
||||
inline u32 JKRGetAramFreeSize() {
|
||||
return JKRAram::getAramHeap()->getFreeSize();
|
||||
}
|
||||
|
||||
inline u32 JKRGetAramUsedSize(u8 param_0) {
|
||||
return JKRAram::getAramHeap()->getUsedSize(param_0);
|
||||
}
|
||||
|
||||
// void JKRDecompressFromAramToMainRam(u32, void*, u32, u32, u32, u32*);
|
||||
|
||||
#endif /* JKRARAM_H */
|
||||
|
||||
@@ -27,7 +27,6 @@ public:
|
||||
static u32 fetchResource_subroutine(u32, u32, u8*, u32, int);
|
||||
static u32 fetchResource_subroutine(u32, u32, JKRHeap*, int, u8**);
|
||||
|
||||
private:
|
||||
/* 0x00 */ // vtable
|
||||
/* 0x04 */ // JKRArchive
|
||||
/* 0x64 */ JKRAramBlock* mBlock;
|
||||
|
||||
@@ -26,10 +26,10 @@ public:
|
||||
JKRAramBlock* alloc(u32, EAllocMode);
|
||||
JKRAramBlock* allocFromHead(u32);
|
||||
JKRAramBlock* allocFromTail(u32);
|
||||
u32 getFreeSize(void);
|
||||
u32 getTotalFreeSize(void);
|
||||
// u32 getUsedSize(void);
|
||||
void dump(void);
|
||||
u32 getFreeSize();
|
||||
u32 getTotalFreeSize();
|
||||
u32 getUsedSize(u8);
|
||||
void dump();
|
||||
void free(JKRAramBlock *block) {
|
||||
delete block;
|
||||
}
|
||||
|
||||
@@ -96,6 +96,7 @@ public:
|
||||
void setCostFrame(int frame) { mCostFrame = frame; }
|
||||
void setVisible(bool visible) { mVisible = visible; }
|
||||
void setVisibleHeapBar(bool visible) { mHeapBarVisible = visible; }
|
||||
void setWatchHeap(JKRHeap* pHeap) { mWatchHeap = pHeap; }
|
||||
|
||||
static JUTProcBar* getManager() { return sManager; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user