mirror of
https://github.com/zeldaret/tp
synced 2026-08-22 06:44:53 -04:00
JAHostIO, JAWExtSystem debug (#2985)
This commit is contained in:
@@ -19,8 +19,8 @@ public:
|
||||
virtual s32 getGrafType() const { return 1; }
|
||||
virtual void setLookat();
|
||||
|
||||
f32 getWidthPower() const { return mBounds.getWidth() / mOrtho.getWidth(); }
|
||||
f32 getHeightPower() const { return mBounds.getHeight() / mOrtho.getHeight(); }
|
||||
f32 getWidthPower() { return mBounds.getWidth() / mOrtho.getWidth(); }
|
||||
f32 getHeightPower() { return mBounds.getHeight() / mOrtho.getHeight(); }
|
||||
|
||||
void setOrtho(f32 x, f32 y, f32 width, f32 height, f32 far, f32 near) {
|
||||
JGeometry::TBox2<f32> ortho(x, y, x + width, y + height);
|
||||
|
||||
@@ -40,6 +40,11 @@ public:
|
||||
|
||||
virtual ~J2DPrint();
|
||||
|
||||
JUTFont* getFont() const { return mFont; }
|
||||
f32 getCursorV() const { return mCursorV; }
|
||||
void setCharColor(JUtility::TColor color) { mCharColor = color; }
|
||||
void setGradColor(JUtility::TColor color) { mGradColor = color; }
|
||||
|
||||
f32 print_va(u8 alpha, const char* fmt, va_list args) {
|
||||
return J2DPrint_print_alpha_va(this, alpha, fmt, args);
|
||||
}
|
||||
|
||||
@@ -256,15 +256,15 @@ public:
|
||||
private:
|
||||
/* 0x0 */ u32 mFlags;
|
||||
|
||||
GXIndTexStageID getIndStage() const { return (GXIndTexStageID)(mFlags & 0x03); }
|
||||
GXIndTexFormat getIndFormat() const { return (GXIndTexFormat)((mFlags >> 2) & 0x03); }
|
||||
GXIndTexBiasSel getBiasSel() const { return (GXIndTexBiasSel)((mFlags >> 4) & 0x07); }
|
||||
GXIndTexWrap getWrapS() const { return (GXIndTexWrap)((mFlags >> 8) & 0x07); }
|
||||
GXIndTexWrap getWrapT() const { return (GXIndTexWrap)((mFlags >> 11) & 0x07); }
|
||||
GXIndTexMtxID getMtxSel() const { return (GXIndTexMtxID)((mFlags >> 16) & 0x0F); }
|
||||
GXBool getPrev() const { return (GXBool)((mFlags >> 20) & 0x01); }
|
||||
GXBool getLod() const { return (GXBool)((mFlags >> 21) & 0x01); }
|
||||
GXIndTexAlphaSel getAlphaSel() const { return (GXIndTexAlphaSel)((mFlags >> 22) & 0x03); }
|
||||
u8 getIndStage() const { return (mFlags & 0x03); }
|
||||
u8 getIndFormat() const { return (mFlags >> 2) & 0x03; }
|
||||
u8 getBiasSel() const { return (mFlags >> 4) & 0x07; }
|
||||
u8 getWrapS() const { return (mFlags >> 8) & 0x07; }
|
||||
u8 getWrapT() const { return (mFlags >> 11) & 0x07; }
|
||||
u8 getMtxSel() const { return (mFlags >> 16) & 0x0F; }
|
||||
u8 getPrev() const { return (mFlags >> 20) & 0x01; }
|
||||
u8 getLod() const { return (mFlags >> 21) & 0x01; }
|
||||
u8 getAlphaSel() const { return (mFlags >> 22) & 0x03; }
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -171,7 +171,9 @@ public:
|
||||
/* 0x0130 */ u8 mFlags;
|
||||
/* 0x0131 */ bool mTextFontOwned;
|
||||
/* 0x0132 */ u16 mStringLength;
|
||||
#if PLATFORM_GCN
|
||||
/* 0x0134 */ u8 field_0x134[4];
|
||||
#endif
|
||||
}; // Size: 0x138
|
||||
|
||||
#endif /* J2DTEXTBOX_H */
|
||||
|
||||
@@ -7,6 +7,13 @@
|
||||
class JSURandomInputStream;
|
||||
class JUTTexture;
|
||||
|
||||
enum J2DTextureBase {
|
||||
TEXTUREBASE_0 = 0,
|
||||
};
|
||||
|
||||
enum J2DWindowMirror {
|
||||
};
|
||||
|
||||
/**
|
||||
* @ingroup jsystem-j2d
|
||||
*
|
||||
@@ -32,8 +39,12 @@ public:
|
||||
J2DWindow(J2DPane*, JSURandomInputStream*, J2DMaterial*);
|
||||
J2DWindow(J2DPane*, JSURandomInputStream*, JKRArchive*);
|
||||
J2DWindow();
|
||||
J2DWindow(u64, const JGeometry::TBox2<f32>&, const char*, J2DTextureBase, const ResTLUT*);
|
||||
void initiate(const ResTIMG*, const ResTIMG*, const ResTIMG*, const ResTIMG*, const ResTLUT*, J2DWindowMirror, const JGeometry::TBox2<f32>&);
|
||||
void private_readStream(J2DPane*, JSURandomInputStream*, JKRArchive*);
|
||||
void initinfo();
|
||||
void initinfo2();
|
||||
static J2DWindowMirror convertMirror(J2DTextureBase);
|
||||
void draw_private(JGeometry::TBox2<f32> const&, JGeometry::TBox2<f32> const&);
|
||||
void setContentsColor(JUtility::TColor, JUtility::TColor, JUtility::TColor,
|
||||
JUtility::TColor);
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef JAHSOUNDPLAYERNODE_H
|
||||
#define JAHSOUNDPLAYERNODE_H
|
||||
|
||||
#include "JSystem/JAHostIO/JAHFrameNode.h"
|
||||
|
||||
class JAHSoundPlayerNode : public JAHFrameNode {
|
||||
public:
|
||||
JAHSoundPlayerNode();
|
||||
};
|
||||
|
||||
#endif /* JAHSOUNDPLAYERNODE_H */
|
||||
@@ -0,0 +1,29 @@
|
||||
#ifndef JAHFRAMENODE_H
|
||||
#define JAHFRAMENODE_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
#include "JSystem/JAHostIO/JAHioNode.h"
|
||||
|
||||
class JAHVirtualNode;
|
||||
|
||||
class JAHFrameNode : public JAHioNode {
|
||||
public:
|
||||
JAHFrameNode(const char*);
|
||||
/* vt[07] */ virtual ~JAHFrameNode();
|
||||
/* vt[02] */ virtual void listenPropertyEvent(const JORPropertyEvent*);
|
||||
/* vt[05] */ virtual void genMessage(JORMContext*);
|
||||
/* vt[06] */ virtual void listenNodeEvent(const JORNodeEvent*);
|
||||
/* vt[0C] */ virtual s32 getNodeType();
|
||||
/* vt[11] */ virtual void onCurrentNodeFrame();
|
||||
/* vt[12] */ virtual void onFrame();
|
||||
|
||||
void framework();
|
||||
void currentFramework();
|
||||
|
||||
JSULink<JAHFrameNode>* getFrameNodeLink() { return &mFrameNodeLink; }
|
||||
|
||||
/* 0x44 */ JSUTree<JAHVirtualNode> mTree;
|
||||
/* 0x60 */ JSULink<JAHFrameNode> mFrameNodeLink;
|
||||
};
|
||||
|
||||
#endif /* JAHFRAMENODE_H */
|
||||
@@ -0,0 +1,29 @@
|
||||
#ifndef JAHPUBDEFINE_H
|
||||
#define JAHPUBDEFINE_H
|
||||
|
||||
#include "JSystem/JUtility/JUTAssert.h"
|
||||
|
||||
template<class T>
|
||||
class JAHSingletonBase {
|
||||
public:
|
||||
JAHSingletonBase() { sInstance = (T*)this; }
|
||||
virtual ~JAHSingletonBase() { sInstance = NULL; }
|
||||
|
||||
static T* newInstance() {
|
||||
JUT_ASSERT(82, sInstance==NULL);
|
||||
if (!sInstance) {
|
||||
sInstance = new T();
|
||||
}
|
||||
JUT_ASSERT(85, sInstance!=NULL);
|
||||
return sInstance;
|
||||
}
|
||||
|
||||
static T* getIns() {
|
||||
JUT_ASSERT(110, sInstance);
|
||||
return sInstance;
|
||||
}
|
||||
|
||||
static T* sInstance;
|
||||
};
|
||||
|
||||
#endif /* JAHPUBDEFINE_H */
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef JAHUTABLEDIT_H
|
||||
#define JAHUTABLEDIT_H
|
||||
|
||||
#include "JSystem/JAHostIO/JAHVirtualNode.h"
|
||||
|
||||
class JAHUSeBox : public JAHVirtualNode {
|
||||
public:
|
||||
JAHUSeBox();
|
||||
};
|
||||
|
||||
#endif /* JAHUTABLEDIT_H */
|
||||
@@ -0,0 +1,23 @@
|
||||
#ifndef JAHVIRTUALNODE_H
|
||||
#define JAHVIRTUALNODE_H
|
||||
|
||||
#include "JSystem/JAHostIO/JAHioNode.h"
|
||||
#include "JSystem/JSupport/JSUList.h"
|
||||
|
||||
class JAHControl;
|
||||
|
||||
class JAHVirtualNode {
|
||||
public:
|
||||
JAHVirtualNode();
|
||||
virtual void updateNode();
|
||||
virtual void message(JAHControl&);
|
||||
virtual void onFrame();
|
||||
virtual void onCurrentNodeFrame();
|
||||
virtual void propertyEvent(JAH_P_Event, u32);
|
||||
virtual void nodeEvent(JAH_N_Event);
|
||||
|
||||
/* 0x04 */ JSUTree<JAHVirtualNode> mTree;
|
||||
/* 0x20 */ char mName[32];
|
||||
};
|
||||
|
||||
#endif /* JAHVIRTUALNODE_H */
|
||||
@@ -0,0 +1,52 @@
|
||||
#ifndef JAHIOMESSAGE_H
|
||||
#define JAHIOMESSAGE_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
class JAHioNode;
|
||||
class JORMContext;
|
||||
|
||||
class JAHControl {
|
||||
public:
|
||||
JAHControl(JORMContext*, JAHioNode*);
|
||||
void returnY(u16);
|
||||
void indent(s8);
|
||||
void makeComment(const char*, u32, u8, u32);
|
||||
|
||||
static u16 getLineHeight() { return smLineHeight; }
|
||||
static u16 getContWidth() { return smContWidth; }
|
||||
static u16 getIntervalX() { return smIntX; }
|
||||
static u16 getNameWidth() { return smNameWidth; }
|
||||
|
||||
static u16 smButtonWidth[];
|
||||
static u16 smCommentWidth[];
|
||||
static u16 smComboWidth[];
|
||||
static u16 smYTop;
|
||||
static u16 smXLeft;
|
||||
static u16 smIndentSize;
|
||||
static u16 smLineHeight;
|
||||
static u16 smContWidth;
|
||||
static u16 smIntX;
|
||||
static u16 smIntY;
|
||||
static u16 smNameWidth;
|
||||
|
||||
u16 getX() { return mX; }
|
||||
u16 getY() { return mY; }
|
||||
JORMContext* getContext() { return mContext; }
|
||||
|
||||
void tabX(u16 param_1) {
|
||||
mX += param_1 + smIntX;
|
||||
}
|
||||
void returnYDirectSize(u16 param_1) {
|
||||
mY += param_1;
|
||||
mX = smXLeft + field_0x4 * smIndentSize;
|
||||
}
|
||||
|
||||
/* 0x00 */ u16 mX;
|
||||
/* 0x02 */ u16 mY;
|
||||
/* 0x04 */ u16 field_0x4;
|
||||
/* 0x08 */ JORMContext* mContext;
|
||||
/* 0x0C */ JAHioNode* mNode;
|
||||
};
|
||||
|
||||
#endif /* JAHIOMESSAGE_H */
|
||||
@@ -0,0 +1,28 @@
|
||||
#ifndef JAHIOMGR_H
|
||||
#define JAHIOMGR_H
|
||||
|
||||
#include "JSystem/JAHostIO/JAHPubDefine.h"
|
||||
#include "JSystem/JSupport/JSUList.h"
|
||||
|
||||
class JAHFrameNode;
|
||||
class JAHioNode;
|
||||
class JORReflexible;
|
||||
|
||||
class JAHioMgr : public JAHSingletonBase<JAHioMgr> {
|
||||
public:
|
||||
JAHioMgr();
|
||||
void init_OnGame();
|
||||
bool isGameMode();
|
||||
void appendRootNode(JORReflexible*, JAHioNode*);
|
||||
void appendFrameNode(JAHioNode*);
|
||||
void removeFrameNode(JAHioNode*);
|
||||
u32 framework();
|
||||
|
||||
u32 getNodeSysType() { return field_0x8; }
|
||||
|
||||
/* 0x04 */ s32 field_0x4;
|
||||
/* 0x08 */ u32 field_0x8;
|
||||
JSUList<JAHFrameNode> field_0xc;
|
||||
};
|
||||
|
||||
#endif /* JAHIOMGR_H */
|
||||
@@ -0,0 +1,55 @@
|
||||
#ifndef JAHIONODE_H
|
||||
#define JAHIONODE_H
|
||||
|
||||
#include "JSystem/JHostIO/JORReflexible.h"
|
||||
#include "JSystem/JSupport/JSUList.h"
|
||||
|
||||
enum JAH_N_Event {
|
||||
JAH_N_EVENT0 = 0,
|
||||
JAH_N_EVENT1 = 1,
|
||||
JAH_N_EVENT2 = 2,
|
||||
};
|
||||
|
||||
enum JAH_P_Event {
|
||||
JAH_P_EVENT0 = 0,
|
||||
JAH_P_EVENT1 = 1,
|
||||
};
|
||||
|
||||
class JAHControl;
|
||||
|
||||
class JAHioNode : public JORReflexible {
|
||||
public:
|
||||
JAHioNode(const char*);
|
||||
/* vt[07] */ virtual ~JAHioNode();
|
||||
/* vt[02] */ virtual void listenPropertyEvent(const JORPropertyEvent*);
|
||||
/* vt[05] */ virtual void genMessage(JORMContext*);
|
||||
/* vt[06] */ virtual void listenNodeEvent(const JORNodeEvent*);
|
||||
/* vt[08] */ virtual void message(JAHControl&) {}
|
||||
/* vt[09] */ virtual void appendNode(JAHioNode*, const char*);
|
||||
/* vt[0A] */ virtual void prependNode(JAHioNode*, const char*);
|
||||
/* vt[0B] */ virtual void removeNode(JAHioNode*);
|
||||
/* vt[0C] */ virtual s32 getNodeType() { return 0; }
|
||||
/* vt[0D] */ virtual u32 getNodeKind() const;
|
||||
/* vt[0E] */ virtual u32 getNodeIcon() const { return 0; }
|
||||
/* vt[0F] */ virtual void propertyEvent(JAH_P_Event, u32) {}
|
||||
/* vt[10] */ virtual void nodeEvent(JAH_N_Event) {}
|
||||
void updateNode();
|
||||
void setNodeName(const char*);
|
||||
void generateRealChildren(JORMContext*);
|
||||
void generateTempChildren(JORMContext*);
|
||||
JAHioNode* getParent();
|
||||
|
||||
static JAHioNode* getCurrentNode() { return smCurrentNode; }
|
||||
|
||||
static JAHioNode* smCurrentNode;
|
||||
|
||||
JSUTree<JAHioNode>* getTree() { return &mTree; }
|
||||
char* getNodeName() { return mName; }
|
||||
void setLastChild(JAHioNode* node) { mLastChild = node; }
|
||||
|
||||
/* 0x04 */ JSUTree<JAHioNode> mTree;
|
||||
/* 0x20 */ char mName[32];
|
||||
/* 0x40 */ JAHioNode* mLastChild;
|
||||
};
|
||||
|
||||
#endif /* JAHIONODE_H */
|
||||
@@ -0,0 +1,10 @@
|
||||
#ifndef JAHIOUTIL_H
|
||||
#define JAHIOUTIL_H
|
||||
|
||||
namespace JAHioUtil {
|
||||
char* getString(const char* msg, ...);
|
||||
|
||||
extern char mStringBuffer[];
|
||||
}
|
||||
|
||||
#endif /* JAHIOUTIL_H */
|
||||
@@ -0,0 +1,49 @@
|
||||
#ifndef JAWEXTSYSTEM_H
|
||||
#define JAWEXTSYSTEM_H
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWSystem.h"
|
||||
#include "JSystem/JGadget/std-list.h"
|
||||
|
||||
class JAWWindow;
|
||||
class JUTGamePad;
|
||||
|
||||
namespace JAWExtSystem {
|
||||
BOOL registWindow(u32, JAWWindow*, int, int);
|
||||
BOOL destroyWindow(u32, JAWWindow*);
|
||||
void nextPage();
|
||||
void prevPage();
|
||||
void nextWindow();
|
||||
void prevWindow();
|
||||
void draw();
|
||||
void padProc(const JUTGamePad&);
|
||||
|
||||
class TSystemInterface : public JAWSystemInterface {
|
||||
public:
|
||||
TSystemInterface() {}
|
||||
virtual BOOL registWindow(u32 param_1, JAWWindow* param_2, int param_3, int param_4) {
|
||||
return JAWExtSystem::registWindow(param_1, param_2, param_3, param_4);
|
||||
}
|
||||
virtual BOOL destroyWindow(u32 param_1, JAWWindow* param_2) {
|
||||
return JAWExtSystem::destroyWindow(param_1, param_2);
|
||||
}
|
||||
virtual void setForegroundWindow(JAWWindow*) {}
|
||||
};
|
||||
|
||||
class TCurrentHeap {
|
||||
public:
|
||||
TCurrentHeap(const TSystemInterface& interface) {
|
||||
heap = JKRGetCurrentHeap();
|
||||
JKRSetCurrentHeap(interface.getCurrentHeap());
|
||||
}
|
||||
~TCurrentHeap() { JKRSetCurrentHeap(heap); }
|
||||
|
||||
/* 0x00 */ JKRHeap* heap;
|
||||
};
|
||||
|
||||
extern JGadget::TList<JAWWindow*> sPage[128];
|
||||
extern TSystemInterface sInterface;
|
||||
extern s32 sCurrentPage;
|
||||
extern u8 lbl_80748E44;
|
||||
}
|
||||
|
||||
#endif /* JAWEXTSYSTEM_H */
|
||||
@@ -0,0 +1,43 @@
|
||||
#ifndef JAWGRAPHCONTEXT_H
|
||||
#define JAWGRAPHCONTEXT_H
|
||||
|
||||
#include "JSystem/JUtility/TColor.h"
|
||||
#include "JSystem/JGeometry.h"
|
||||
|
||||
class J2DPrint;
|
||||
class JUTResFont;
|
||||
|
||||
class JAWGraphContext {
|
||||
public:
|
||||
JAWGraphContext();
|
||||
~JAWGraphContext();
|
||||
void reset();
|
||||
void color(u8, u8, u8, u8);
|
||||
void color(const JUtility::TColor&);
|
||||
void locate(int, int);
|
||||
void print(char const*, ...);
|
||||
void print(int, int, const char*, ...);
|
||||
void color(const JUtility::TColor&, const JUtility::TColor&, const JUtility::TColor&, const JUtility::TColor&);
|
||||
void fillBox(const JGeometry::TBox2<f32>&);
|
||||
void drawFrame(const JGeometry::TBox2<f32>&);
|
||||
void line(const JGeometry::TVec2<f32>&, const JGeometry::TVec2<f32>&);
|
||||
void setGXforPrint();
|
||||
void setGXforDraw();
|
||||
|
||||
/* 0x00 */ J2DPrint* field_0x0;
|
||||
/* 0x04 */ JUtility::TColor field_0x4;
|
||||
/* 0x08 */ JUtility::TColor field_0x8;
|
||||
/* 0x0C */ JUtility::TColor field_0xc;
|
||||
/* 0x10 */ JUtility::TColor field_0x10;
|
||||
/* 0x14 */ u8 mParentAlpha;
|
||||
/* 0x15 */ u8 field_0x15;
|
||||
/* 0x16 */ u8 field_0x16;
|
||||
/* 0x18 */ int field_0x18;
|
||||
|
||||
void setParentAlpha(u8 alpha) { mParentAlpha = alpha; }
|
||||
|
||||
static JUTResFont* sFont;
|
||||
static bool lbl_8074CD30;
|
||||
};
|
||||
|
||||
#endif /* JAWGRAPHCONTEXT_H */
|
||||
@@ -0,0 +1,22 @@
|
||||
#ifndef JAWSYSTEM_H
|
||||
#define JAWSYSTEM_H
|
||||
|
||||
#include "JSystem/JKernel/JKRHeap.h"
|
||||
|
||||
class JAWWindow;
|
||||
|
||||
class JAWSystemInterface {
|
||||
public:
|
||||
JAWSystemInterface();
|
||||
virtual BOOL registWindow(u32, JAWWindow*, int, int) = 0;
|
||||
virtual BOOL destroyWindow(u32, JAWWindow*) = 0;
|
||||
virtual void setForegroundWindow(JAWWindow*) = 0;
|
||||
|
||||
/* 0x04 */ JKRHeap* mHeap;
|
||||
|
||||
JKRHeap* getCurrentHeap() const;
|
||||
|
||||
static JAWSystemInterface* sInstance;
|
||||
};
|
||||
|
||||
#endif /* JAWSYSTEM_H */
|
||||
@@ -0,0 +1,112 @@
|
||||
#ifndef JAWWINDOW_H
|
||||
#define JAWWINDOW_H
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWGraphContext.h"
|
||||
#include "JSystem/J2DGraph/J2DTextBox.h"
|
||||
#include "JSystem/J2DGraph/J2DWindow.h"
|
||||
#include "JSystem/JGeometry.h"
|
||||
|
||||
class JAWGraphContext;
|
||||
class JUTGamePad;
|
||||
|
||||
class JUTPoint {
|
||||
public:
|
||||
JUTPoint(int i_x, int i_y) {
|
||||
x = i_x;
|
||||
y = i_y;
|
||||
}
|
||||
|
||||
/* 0x00*/ int x;
|
||||
/* 0x04*/ int y;
|
||||
};
|
||||
|
||||
class JAWWindow {
|
||||
public:
|
||||
class TJ2DWindowDraw : public J2DWindow {
|
||||
public:
|
||||
TJ2DWindowDraw(u32, const JGeometry::TBox2<f32>&, const char*);
|
||||
|
||||
void drawPane(int x, int y, const J2DGrafContext* p_grafCtx) {
|
||||
J2DPane::draw(x, y, p_grafCtx, true, true);
|
||||
calcMtx();
|
||||
}
|
||||
};
|
||||
|
||||
class TWindowText : public J2DPane {
|
||||
public:
|
||||
TWindowText(JAWWindow*);
|
||||
virtual void drawSelf(f32, f32);
|
||||
virtual void drawSelf(f32, f32, Mtx*);
|
||||
|
||||
/* 0x0FC */ JAWGraphContext field_0xfc;
|
||||
/* 0x118 */ JAWWindow* m_pParent;
|
||||
/* 0x11C */ JUTPoint field_0x11c;
|
||||
};
|
||||
|
||||
JAWWindow(const char*, int, int);
|
||||
virtual ~JAWWindow();
|
||||
virtual void onDraw(JAWGraphContext*);
|
||||
virtual BOOL onInit();
|
||||
virtual void frameWork() {}
|
||||
virtual void onPadProc(const JUTGamePad&) {}
|
||||
virtual void onTrigA(const JUTGamePad&) {}
|
||||
virtual void onTrigB(const JUTGamePad&) {}
|
||||
virtual void onTrigX(const JUTGamePad&) {}
|
||||
virtual void onTrigY(const JUTGamePad&) {}
|
||||
virtual void onTrigMenu(const JUTGamePad&) {}
|
||||
virtual void onTrigL(const JUTGamePad&) {}
|
||||
virtual void onTrigZ(const JUTGamePad&) {}
|
||||
virtual void onTrigUp(const JUTGamePad&) {}
|
||||
virtual void onTrigDown(const JUTGamePad&) {}
|
||||
virtual void onTrigLeft(const JUTGamePad&) {}
|
||||
virtual void onTrigRight(const JUTGamePad&) {}
|
||||
virtual void onReleaseA(const JUTGamePad&) {}
|
||||
virtual void onReleaseB(const JUTGamePad&) {}
|
||||
virtual void onReleaseX(const JUTGamePad&) {}
|
||||
virtual void onReleaseY(const JUTGamePad&) {}
|
||||
virtual void onReleaseMenu(const JUTGamePad&) {}
|
||||
virtual void onReleaseL(const JUTGamePad&) {}
|
||||
virtual void onReleaseZ(const JUTGamePad&) {}
|
||||
virtual void onReleaseUp(const JUTGamePad&) {}
|
||||
virtual void onReleaseDown(const JUTGamePad&) {}
|
||||
virtual void onReleaseLeft(const JUTGamePad&) {}
|
||||
virtual void onReleaseRight(const JUTGamePad&) {}
|
||||
virtual void onKeyA(const JUTGamePad&) {}
|
||||
virtual void onKeyB(const JUTGamePad&) {}
|
||||
virtual void onKeyX(const JUTGamePad&) {}
|
||||
virtual void onKeyY(const JUTGamePad&) {}
|
||||
virtual void onKeyMenu(const JUTGamePad&) {}
|
||||
virtual void onKeyL(const JUTGamePad&) {}
|
||||
virtual void onKeyZ(const JUTGamePad&) {}
|
||||
virtual void onKeyUp(const JUTGamePad&) {}
|
||||
virtual void onKeyDown(const JUTGamePad&) {}
|
||||
virtual void onKeyLeft(const JUTGamePad&) {}
|
||||
virtual void onKeyRight(const JUTGamePad&) {}
|
||||
|
||||
BOOL initIf();
|
||||
void setTitleColor(const JUtility::TColor&, const JUtility::TColor&);
|
||||
void setWindowColor(const JUtility::TColor&, const JUtility::TColor&, const JUtility::TColor&, const JUtility::TColor&);
|
||||
void move(f32, f32);
|
||||
void addPosition(f32, f32);
|
||||
void addSize(f32, f32);
|
||||
static JUtility::TColor convJudaColor(u16);
|
||||
void padProc(const JUTGamePad&);
|
||||
|
||||
/* 0x004 */ Mtx mMatrix;
|
||||
/* 0x034 */ u8 field_0x34[0x38 - 0x34];
|
||||
/* 0x038 */ TJ2DWindowDraw field_0x38;
|
||||
/* 0x180 */ J2DTextBox field_0x180;
|
||||
/* 0x2B0 */ TWindowText field_0x2b0;
|
||||
/* 0x3D8 */ JUtility::TColor field_0x3d8;
|
||||
/* 0x3DC */ JUtility::TColor field_0x3dc;
|
||||
/* 0x3E0 */ JUtility::TColor field_0x3e0;
|
||||
/* 0x3E4 */ JUtility::TColor field_0x3e4;
|
||||
/* 0x3E8 */ int field_0x3e8;
|
||||
/* 0x3EC */ u8 field_0x3ec;
|
||||
|
||||
void setMatrix(Mtx mtx) { MTXCopy(mtx, mMatrix); }
|
||||
void setAlpha(u8 alpha) { field_0x38.setAlpha(alpha); }
|
||||
void draw(int x, int y, const J2DGrafContext* p_grafCtx) { field_0x38.drawPane(x, y, p_grafCtx); }
|
||||
};
|
||||
|
||||
#endif /* JAWWINDOW_H */
|
||||
@@ -0,0 +1,10 @@
|
||||
#ifndef JAWWINDOW3D_H
|
||||
#define JAWWINDOW3D_H
|
||||
|
||||
#include "JSystem/JGeometry.h"
|
||||
|
||||
namespace JAWWindow3D {
|
||||
extern JGeometry::TVec2<f32> sPtOrigin;
|
||||
}
|
||||
|
||||
#endif /* JAWWINDOW3D_H */
|
||||
@@ -0,0 +1,20 @@
|
||||
#ifndef JAWBANKVIEW_H
|
||||
#define JAWBANKVIEW_H
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWWindow.h"
|
||||
|
||||
class JAWBankView : public JAWWindow {
|
||||
public:
|
||||
JAWBankView();
|
||||
|
||||
/* 0x3F0 */ int field_0x3f0;
|
||||
/* 0x3F4 */ int field_0x3f4;
|
||||
/* 0x3F8 */ int field_0x3f8;
|
||||
/* 0x3FC */ int field_0x3fc;
|
||||
/* 0x400 */ u8 field_0x400;
|
||||
/* 0x404 */ int field_0x404;
|
||||
/* 0x408 */ f32 field_0x408;
|
||||
/* 0x40C */ u8 field_0x40c[4];
|
||||
};
|
||||
|
||||
#endif /* JAWBANKVIEW_H */
|
||||
@@ -0,0 +1,14 @@
|
||||
#ifndef JAWCHVIEW_H
|
||||
#define JAWCHVIEW_H
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWWindow.h"
|
||||
|
||||
class JAWChView : public JAWWindow {
|
||||
public:
|
||||
JAWChView();
|
||||
|
||||
/* 0x3F0 */ int field_0x3f0;
|
||||
/* 0x3F4 */ u8 field_0x3f4[4];
|
||||
};
|
||||
|
||||
#endif /* JAWCHVIEW_H */
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef JAWENTRYSEVIEW_H
|
||||
#define JAWENTRYSEVIEW_H
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWWindow.h"
|
||||
|
||||
class JAWEntrySeViewBasic : public JAWWindow {
|
||||
public:
|
||||
JAWEntrySeViewBasic();
|
||||
};
|
||||
|
||||
#endif /* JAWENTRYSEVIEW_H */
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef JAWHIOBANKEDIT_H
|
||||
#define JAWHIOBANKEDIT_H
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWWindow.h"
|
||||
|
||||
class JAWHioBankEdit : public JAWWindow {
|
||||
public:
|
||||
JAWHioBankEdit();
|
||||
};
|
||||
|
||||
#endif /* JAWHIOBANKEDIT_H */
|
||||
@@ -0,0 +1,55 @@
|
||||
#ifndef JAWHIORECEIVER_H
|
||||
#define JAWHIORECEIVER_H
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWWindow.h"
|
||||
#include "JSystem/JHostIO/JHIComm.h"
|
||||
#include "JSystem/JHostIO/JHICommonMem.h"
|
||||
#include "JSystem/JAudio2/JAISound.h"
|
||||
|
||||
class JAISeqData;
|
||||
|
||||
class JADHioReceiver : JHITag<JHICmnMem> {
|
||||
public:
|
||||
JADHioReceiver();
|
||||
virtual ~JADHioReceiver();
|
||||
virtual void receive(const char*, s32);
|
||||
virtual u32 parse(u32,char*, u32) = 0;
|
||||
};
|
||||
|
||||
|
||||
class JAWHioReceiver : public JAWWindow {
|
||||
public:
|
||||
class TSeqList {
|
||||
public:
|
||||
class TSeqData {
|
||||
public:
|
||||
};
|
||||
|
||||
bool getSeqData(JAISoundID, JAISeqData*) const;
|
||||
|
||||
/* 0x00 */ JSUList<TSeqData> mList;
|
||||
};
|
||||
|
||||
class THioReceiver : public JADHioReceiver {
|
||||
public:
|
||||
THioReceiver();
|
||||
virtual ~THioReceiver();
|
||||
virtual u32 parse(u32,char*, u32);
|
||||
|
||||
/* 0x0C */ int field_0xc;
|
||||
/* 0x10 */ u8 field_0x10;
|
||||
/* 0x14 */ TSeqList field_0x14;
|
||||
/* 0x20 */ int field_0x20;
|
||||
/* 0x24 */ int field_0x24;
|
||||
/* 0x28 */ int field_0x28;
|
||||
/* 0x2C */ int field_0x2c;
|
||||
};
|
||||
|
||||
JAWHioReceiver();
|
||||
|
||||
const TSeqList* getSeqList() const { return &field_0x3f0.field_0x14; }
|
||||
|
||||
/* 0x3F0 */ THioReceiver field_0x3f0;
|
||||
};
|
||||
|
||||
#endif /* JAWHIORECEIVER_H */
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef JAWPLAYSEVIEW_H
|
||||
#define JAWPLAYSEVIEW_H
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWWindow.h"
|
||||
|
||||
class JAWPlaySeViewBasic : public JAWWindow {
|
||||
public:
|
||||
JAWPlaySeViewBasic();
|
||||
};
|
||||
|
||||
#endif /* JAWPLAYSEVIEW_H */
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef JAWPLAYERCHVIEW_H
|
||||
#define JAWPLAYERCHVIEW_H
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWWindow.h"
|
||||
|
||||
class JAWPlayerChView : public JAWWindow {
|
||||
public:
|
||||
JAWPlayerChView();
|
||||
};
|
||||
|
||||
#endif /* JAWPLAYERCHVIEW_H */
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef JAWREPORTVIEW_H
|
||||
#define JAWREPORTVIEW_H
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWWindow.h"
|
||||
|
||||
class JAWReportView : public JAWWindow {
|
||||
public:
|
||||
JAWReportView();
|
||||
};
|
||||
|
||||
#endif /* JAWREPORTVIEW_H */
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef JAWSYSMEMVIEW_H
|
||||
#define JAWSYSMEMVIEW_H
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWWindow.h"
|
||||
|
||||
class JAWSysMemView : public JAWWindow {
|
||||
public:
|
||||
JAWSysMemView();
|
||||
};
|
||||
|
||||
#endif /* JAWSYSMEMVIEW_H */
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef JAWVOLUME_H
|
||||
#define JAWVOLUME_H
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWWindow.h"
|
||||
|
||||
class JAWVolume : public JAWWindow {
|
||||
public:
|
||||
JAWVolume(int, int);
|
||||
};
|
||||
|
||||
#endif /* JAWVOLUME_H */
|
||||
@@ -1,6 +1,11 @@
|
||||
#ifndef JASREPORT_H
|
||||
#define JASREPORT_H
|
||||
|
||||
class JKRHeap;
|
||||
|
||||
void JASReportInit(JKRHeap*, int);
|
||||
int JASReportGetLineMax();
|
||||
int JASReportCopyBuffer(char *, int);
|
||||
void JASReport(const char* message, ...);
|
||||
|
||||
#endif /* JASREPORT_H */
|
||||
|
||||
@@ -50,6 +50,7 @@ public:
|
||||
~JAUSeqDataMgr_SeqCollection();
|
||||
|
||||
const void* getResource() const { return field_0x4; }
|
||||
void init(const void* param_1) { JAUSeqCollection::init(param_1); }
|
||||
|
||||
/* 0x14 */ JAISeqDataUser* user_;
|
||||
};
|
||||
|
||||
@@ -38,6 +38,12 @@ template <typename Category, typename T, typename Distance, typename Pointer, ty
|
||||
struct TIterator : public std::iterator<Category, T, Distance, Pointer, Reference> {
|
||||
};
|
||||
|
||||
template <typename Iterator>
|
||||
struct TIterator_reverse : public std::reverse_iterator<Iterator> {
|
||||
TIterator_reverse() {}
|
||||
TIterator_reverse(Iterator it) : std::reverse_iterator<Iterator>(it) {}
|
||||
};
|
||||
|
||||
template <typename Iterator, typename T, typename Predicate>
|
||||
inline Iterator findUpperBound_binary_all(Iterator first, Iterator last, const T& val, Predicate p) {
|
||||
return std::upper_bound(first, last, val, p);
|
||||
|
||||
@@ -0,0 +1,180 @@
|
||||
#ifndef STD_LIST_H
|
||||
#define STD_LIST_H
|
||||
|
||||
#include "JSystem/JGadget/define.h"
|
||||
#include "JSystem/JGadget/search.h"
|
||||
#include "JSystem/JGadget/std-memory.h"
|
||||
|
||||
namespace JGadget {
|
||||
template <typename T, typename Allocator = JGadget::TAllocator<T> >
|
||||
struct TList {
|
||||
struct TNode_ {
|
||||
/* 0x00 */ TNode_* pNext_;
|
||||
/* 0x04 */ TNode_* pPrev_;
|
||||
};
|
||||
|
||||
struct iterator : public TIterator<std::bidirectional_iterator_tag, T, s32, T*, T&> {
|
||||
iterator() {p_ = NULL; }
|
||||
iterator(TNode_* pNode) { p_ = pNode; }
|
||||
|
||||
iterator& operator++() { p_ = p_->pNext_; return *this; }
|
||||
iterator& operator--() { p_ = p_->pPrev_; return *this; }
|
||||
iterator operator++(int) { const iterator old(*this); (void)++*this; return old; }
|
||||
iterator operator--(int) { const iterator old(*this); (void)--*this; return old; }
|
||||
friend bool operator==(iterator a, iterator b) { return a.p_ == b.p_; }
|
||||
friend bool operator!=(iterator a, iterator b) { return !(a == b); }
|
||||
T& operator*() const {
|
||||
JUT_ASSERT(125, p_!=NULL);
|
||||
return *(T*)&p_[1];
|
||||
}
|
||||
|
||||
/* 0x00 */ TNode_* p_;
|
||||
};
|
||||
|
||||
struct const_iterator {
|
||||
const_iterator(TNode_* pNode) { p_ = pNode; }
|
||||
|
||||
const_iterator& operator++() { p_ = p_->pNext_; return *this; }
|
||||
const_iterator& operator--() { p_ = p_->pPrev_; return *this; }
|
||||
friend bool operator==(const_iterator a, const_iterator b) { return a.p_ == b.p_; }
|
||||
friend bool operator!=(const_iterator a, const_iterator b) { return !(a == b); }
|
||||
|
||||
/* 0x00 */ TNode_* p_;
|
||||
};
|
||||
|
||||
TList(const Allocator& allocator = Allocator()) {
|
||||
field_0x4 = 0;
|
||||
Initialize_();
|
||||
}
|
||||
~TList() {
|
||||
int r30;
|
||||
int r29;
|
||||
JGadget_outMessage* r28;
|
||||
int r27;
|
||||
Confirm();
|
||||
clear();
|
||||
r30 = 0;
|
||||
r29 = 1;
|
||||
if (empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
JGadget_outMessage out(JGadget_outMessage::warning, __FILE__, 229);
|
||||
r30 = 1;
|
||||
r28 = &out;
|
||||
*r28 << "empty()";
|
||||
r27 = 0;
|
||||
if (!r27) {
|
||||
r29 = 0;
|
||||
}
|
||||
}
|
||||
|
||||
iterator push_front(const T& element) { return insert(begin(), element); }
|
||||
iterator push_back(const T& element) { return insert(end(), element); }
|
||||
iterator insert(iterator it, const T& element) {
|
||||
TNode_* p = it.p_;
|
||||
JUT_ASSERT(286, p!=NULL);
|
||||
TNode_* prev = p->pPrev_;
|
||||
TNode_* node = CreateNode_(p, prev, element);
|
||||
if (!node) {
|
||||
return end();
|
||||
}
|
||||
p->pPrev_ = node;
|
||||
prev->pNext_ = node;
|
||||
field_0x4++;
|
||||
return iterator(node);
|
||||
}
|
||||
|
||||
iterator erase(iterator start, iterator end) {
|
||||
while (start != end) {
|
||||
start = erase(start);
|
||||
}
|
||||
return start;
|
||||
}
|
||||
|
||||
iterator erase(iterator it) {
|
||||
JUT_ASSERT(314, !empty());
|
||||
TNode_* p = it.p_;
|
||||
JUT_ASSERT(316, p!=NULL);
|
||||
TNode_* next = p->pNext_;
|
||||
p->pPrev_->pNext_ = next;
|
||||
next->pPrev_ = p->pPrev_;
|
||||
DestroyNode_(p);
|
||||
field_0x4--;
|
||||
return iterator(next);
|
||||
}
|
||||
|
||||
void clear() { erase(begin(), end()); }
|
||||
BOOL empty() const { return size() == 0; }
|
||||
int size() const { return field_0x4; }
|
||||
iterator begin() { return iterator(oEnd_.pNext_); }
|
||||
iterator end() { return iterator(&oEnd_); }
|
||||
const_iterator begin() const { return const_iterator(oEnd_.pNext_); }
|
||||
const_iterator end() const { return const_iterator((TNode_*)&oEnd_); }
|
||||
TIterator_reverse<iterator> rbegin() { return TIterator_reverse<iterator>(begin()); }
|
||||
TIterator_reverse<iterator> rend() { return TIterator_reverse<iterator>(end()); }
|
||||
|
||||
void Initialize_() {
|
||||
oEnd_.pNext_ = &oEnd_;
|
||||
oEnd_.pPrev_ = &oEnd_;
|
||||
}
|
||||
|
||||
BOOL Confirm() const {
|
||||
u32 r28 = 0;
|
||||
const_iterator local_24 = end();
|
||||
if (local_24.p_ != &oEnd_) {
|
||||
return FALSE;
|
||||
}
|
||||
const_iterator local_28 = begin();
|
||||
if (local_28.p_ != oEnd_.pNext_) {
|
||||
return FALSE;
|
||||
}
|
||||
for (; local_28 != local_24; ++local_28) {
|
||||
TNode_* node = local_28.p_;
|
||||
if (node->pNext_->pPrev_ != node) {
|
||||
return FALSE;
|
||||
}
|
||||
if (node->pPrev_->pNext_ != node) {
|
||||
return FALSE;
|
||||
}
|
||||
r28++;
|
||||
}
|
||||
if (local_28.p_ != &oEnd_) {
|
||||
return FALSE;
|
||||
}
|
||||
if (r28 != size()) {
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
TNode_* CreateNode_(TNode_ *pNext, TNode_ *pPrev, const T& pObject) {
|
||||
JUT_ASSERT(483, pNext!=NULL);
|
||||
JUT_ASSERT(484, pPrev!=NULL);
|
||||
TNode_* node = (TNode_*)mAllocator.AllocateRaw(sizeof(TNode_) + sizeof(T));
|
||||
if (!node) {
|
||||
JGADGET_WARNMSG(489, "can\'t allocate memory");
|
||||
return NULL;
|
||||
}
|
||||
node->pNext_ = pNext;
|
||||
node->pPrev_ = pPrev;
|
||||
mAllocator.construct((T*)&node[1], pObject);
|
||||
return node;
|
||||
}
|
||||
|
||||
void DestroyNode_(TNode_* p) {
|
||||
JUT_ASSERT(501, p!=NULL);
|
||||
JUT_ASSERT(502, p!=&oEnd_);
|
||||
JUT_ASSERT(503, p->pNext_->pPrev_!=p);
|
||||
JUT_ASSERT(504, p->pPrev_->pNext_!=p);
|
||||
mAllocator.destroy((T*)&p[1]);
|
||||
mAllocator.DeallocateRaw((T*)p);
|
||||
}
|
||||
|
||||
/* 0x00 */ Allocator mAllocator;
|
||||
/* 0x04 */ int field_0x4;
|
||||
/* 0x08 */ TNode_ oEnd_;
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* STD_LIST_H */
|
||||
@@ -22,7 +22,13 @@ struct TAllocator {
|
||||
delete mem;
|
||||
}
|
||||
|
||||
void construct(T* p, const T& other) {
|
||||
JUT_ASSERT(67, p!=NULL);
|
||||
new(p) T(other);
|
||||
}
|
||||
|
||||
void destroy(T* p) {
|
||||
(void)p;
|
||||
JUT_ASSERT(68, p!=NULL);
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,10 @@ struct JORPropertyEvent : JOREvent {
|
||||
};
|
||||
|
||||
struct JORGenEvent : JOREvent {};
|
||||
struct JORNodeEvent : JOREvent {};
|
||||
|
||||
struct JORNodeEvent : JOREvent {
|
||||
/* 0x00 */ u32 field_0x0;
|
||||
};
|
||||
|
||||
struct JORMContext;
|
||||
struct JORServer;
|
||||
|
||||
@@ -131,7 +131,7 @@ public:
|
||||
/* 0x1107C */ CallbackLinkList m_eventCallbackList;
|
||||
};
|
||||
|
||||
inline void JOR_MESSAGELOOP() {
|
||||
inline u32 JOR_MESSAGELOOP() {
|
||||
JORServer* server = JORServer::getInstance();
|
||||
JHIComPortManager<JHICmnMem>::getInstance()->dispatchMessage();
|
||||
if (server->getEvent()) {
|
||||
@@ -160,7 +160,7 @@ inline void JOR_MESSAGELOOP() {
|
||||
}
|
||||
server->doneEvent();
|
||||
}
|
||||
JHIEventLoop();
|
||||
return JHIEventLoop();
|
||||
}
|
||||
|
||||
inline void JOR_INIT() {
|
||||
@@ -174,8 +174,17 @@ inline void JOR_SETROOTNODE(const char* name, JORReflexible* node, u32 param_3,
|
||||
inline JORMContext* attachJORMContext(u32 msgID) {
|
||||
return JORServer::getInstance()->attachMCTX(msgID);
|
||||
}
|
||||
|
||||
inline JORMContext* JORAttachMContext(u32 msgID) {
|
||||
return JORServer::getInstance()->attachMCTX(msgID);
|
||||
}
|
||||
|
||||
inline void releaseJORMContext(JORMContext* mctx) {
|
||||
JORServer::getInstance()->releaseMCTX(mctx);
|
||||
}
|
||||
|
||||
inline void JORReleaseMContext(JORMContext* mctx) {
|
||||
JORServer::getInstance()->releaseMCTX(mctx);
|
||||
}
|
||||
|
||||
#endif /* JORSERVER_H */
|
||||
|
||||
@@ -190,6 +190,8 @@ public:
|
||||
|
||||
bool appendChild(JSUTree<T>* child) { return this->append(child); }
|
||||
|
||||
bool prependChild(JSUTree<T>* child) { return this->prepend(child); }
|
||||
|
||||
bool removeChild(JSUTree<T>* child) { return this->remove(child); }
|
||||
|
||||
bool insertChild(JSUTree<T>* before, JSUTree<T>* child) { return this->insert(before, child); }
|
||||
@@ -226,11 +228,11 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
T* getObject() { return this->mTree->getObject(); }
|
||||
T* getObject() const { return this->mTree->getObject(); }
|
||||
|
||||
bool operator==(JSUTree<T>* other) { return this->mTree == other; }
|
||||
|
||||
bool operator!=(JSUTree<T>* other) { return this->mTree != other; }
|
||||
bool operator!=(const JSUTree<T>* other) const { return this->mTree != other; }
|
||||
|
||||
JSUTreeIterator<T> operator++(int) {
|
||||
JSUTreeIterator<T> prev = *this;
|
||||
@@ -245,7 +247,7 @@ public:
|
||||
|
||||
T* operator*() { return this->getObject(); }
|
||||
|
||||
T* operator->() { return this->getObject(); }
|
||||
T* operator->() const { return this->getObject(); }
|
||||
|
||||
private:
|
||||
JSUTree<T>* mTree;
|
||||
|
||||
@@ -81,6 +81,8 @@ public:
|
||||
|
||||
u32 getButton() const { return mButton.mButton; }
|
||||
u32 getTrigger() const { return mButton.mTrigger; }
|
||||
u32 getRelease() const { return mButton.mRelease; }
|
||||
u32 getRepeat() const { return mButton.mRepeat; }
|
||||
f32 getMainStickX() const { return mMainStick.mPosX; }
|
||||
f32 getMainStickY() const { return mMainStick.mPosY; }
|
||||
f32 getMainStickValue() const { return mMainStick.mValue; }
|
||||
@@ -100,6 +102,7 @@ public:
|
||||
JUTGamePadRecordBase* getPadReplay() const { return mPadReplay; }
|
||||
JUTGamePadRecordBase* getPadRecord() const { return mPadRecord; }
|
||||
|
||||
bool testButton(u32 button) const { return mButton.mButton & button; }
|
||||
bool testTrigger(u32 button) const { return mButton.mTrigger & button; }
|
||||
|
||||
bool isPushing3ButtonReset() const {
|
||||
|
||||
@@ -80,5 +80,6 @@ public:
|
||||
};
|
||||
|
||||
extern u8 const JUTResFONT_Ascfont_fix12[16736];
|
||||
extern u8 const JUTResFONT_Ascfont_fix16[16736];
|
||||
|
||||
#endif /* JUTRESFONT_H */
|
||||
|
||||
@@ -70,7 +70,6 @@ public:
|
||||
|
||||
const ResTIMG* getTexInfo() const { return mTexInfo; }
|
||||
s32 getFormat() const { return mTexInfo->format; }
|
||||
s32 getTransparency() { return mTexInfo->alphaEnabled; }
|
||||
s32 getTransparency() const { return mTexInfo->alphaEnabled; }
|
||||
s32 getWidth() const { return mTexInfo->width; }
|
||||
s32 getHeight() const { return mTexInfo->height; }
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef Z2AUDIOCS_H
|
||||
#define Z2AUDIOCS_H
|
||||
|
||||
#include <revolution/wpad.h>
|
||||
#include "dolphin/types.h"
|
||||
|
||||
class JKRHeap;
|
||||
class JKRArchive;
|
||||
@@ -9,8 +9,8 @@ class JKRArchive;
|
||||
class Z2AudioCS {
|
||||
public:
|
||||
static void newSpkSoundMemPool();
|
||||
int init(JKRHeap*, JKRArchive*, s32, s32);
|
||||
void update();
|
||||
static int init(JKRHeap*, JKRArchive*, s32, s32);
|
||||
static void update();
|
||||
static void connect(s32);
|
||||
static void disconnect(s32);
|
||||
static void extensionProcess(s32, s32);
|
||||
|
||||
@@ -1,12 +1,45 @@
|
||||
#ifndef Z2DEBUGSYS_H
|
||||
#define Z2DEBUGSYS_H
|
||||
|
||||
#include "JSystem/JAudio2/JASGadget.h"
|
||||
#include "JSystem/JAudio2/JAISeqDataMgr.h"
|
||||
#include "JSystem/JAudio2/JASGadget.h"
|
||||
#include "JSystem/JAudio2/JAUSeqCollection.h"
|
||||
#include "JSystem/JAHostIO/JAHFrameNode.h"
|
||||
#include "JSystem/JAHostIO/JAHioMessage.h"
|
||||
#include "JSystem/JAWWinLib/JAWHioReceiver.h"
|
||||
|
||||
class Z2ParamNode : public JAHFrameNode {
|
||||
public:
|
||||
Z2ParamNode() : JAHFrameNode("サウンド各種パラメータ") {}
|
||||
|
||||
/* vt[07] */ virtual ~Z2ParamNode() {}
|
||||
/* vt[08] */ virtual void message(JAHControl& control);
|
||||
/* vt[0F] */ virtual void propertyEvent(JAH_P_Event, u32);
|
||||
/* vt[12] */ virtual void onFrame();
|
||||
};
|
||||
|
||||
class Z2HioSeSeqDataMgr : public JAUSeqDataMgr_SeqCollection {
|
||||
public:
|
||||
Z2HioSeSeqDataMgr(const void * param_1, const JAWHioReceiver* param_2) {
|
||||
field_0x18 = param_2;
|
||||
init(param_1);
|
||||
};
|
||||
virtual ~Z2HioSeSeqDataMgr() {}
|
||||
virtual SeqDataReturnValue getSeqData(JAISoundID param_1, JAISeqData* param_2) {
|
||||
if (field_0x18->getSeqList()->getSeqData(param_1, param_2)) {
|
||||
param_2->field_0x4 = 4;
|
||||
return SeqDataReturnValue_2;
|
||||
} else {
|
||||
return JAUSeqDataMgr_SeqCollection::getSeqData(param_1, param_2);
|
||||
}
|
||||
}
|
||||
|
||||
/* 0x18 */ const JAWHioReceiver * field_0x18;
|
||||
};
|
||||
|
||||
struct Z2DebugSys : public JASGlobalInstance<Z2DebugSys> {
|
||||
Z2DebugSys();
|
||||
~Z2DebugSys();
|
||||
~Z2DebugSys() {}
|
||||
|
||||
void initJAW();
|
||||
void initSoundHioNode();
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
#ifndef Z2F1TESTWINDOW_H
|
||||
#define Z2F1TESTWINDOW_H
|
||||
|
||||
#include "JSystem/JAHostIO/JAHUTableEdit.h"
|
||||
#include "JSystem/JAWExtSystem/JAWWindow.h"
|
||||
|
||||
class Z2F1TestWindow : public JAWWindow {
|
||||
public:
|
||||
Z2F1TestWindow();
|
||||
|
||||
/* 0x3F0 */ f32 field_0x3f0;
|
||||
/* 0x3F4 */ f32 field_0x3f4;
|
||||
/* 0x3F8 */ f32 field_0x3f8[500];
|
||||
/* 0xBC8 */ int field_0xbc8;
|
||||
/* 0xBCC */ int field_0xbcc;
|
||||
/* 0xBD0 */ u8 field_0xbd0;
|
||||
/* 0xBD4 */ f32 field_0xbd4;
|
||||
};
|
||||
|
||||
class Z2F1SwingTestNode : public JAHFrameNode, public Z2F1TestWindow {
|
||||
public:
|
||||
Z2F1SwingTestNode();
|
||||
|
||||
/* 0xC48 */ JAHUSeBox field_0xc48;
|
||||
/* 0xCD0 */ JAHUSeBox field_0xcd0;
|
||||
/* 0xD58 */ u8 field_0xd58;
|
||||
/* 0xD59 */ u8 field_0xd59;
|
||||
/* 0xD5A */ u8 field_0xd5a;
|
||||
/* 0xD5B */ u8 field_0xd5b;
|
||||
/* 0xD5C */ f32 field_0xd5c;
|
||||
/* 0xD60 */ f32 field_0xd60;
|
||||
/* 0xD64 */ f32 field_0xd64;
|
||||
/* 0xD68 */ f32 field_0xd68;
|
||||
/* 0xD6C */ u8 field_0xd6c[0xD70 - 0xD6C];
|
||||
};
|
||||
|
||||
class Z2AudSettingView : public JAWWindow {
|
||||
public:
|
||||
Z2AudSettingView();
|
||||
};
|
||||
|
||||
class Z2DSPCheck : public JAWWindow {
|
||||
public:
|
||||
Z2DSPCheck() : JAWWindow("Z2DSPCheck", 500, 450) {}
|
||||
};
|
||||
|
||||
#endif /* Z2F1TESTWINDOW_H */
|
||||
@@ -2,11 +2,16 @@
|
||||
#define Z2FXLINEMGR_H
|
||||
|
||||
#include "JSystem/JAudio2/JASGadget.h"
|
||||
#include "JSystem/JAHostIO/JAHFrameNode.h"
|
||||
|
||||
class JKRArchive;
|
||||
class JKRExpHeap;
|
||||
class JKRHeap;
|
||||
|
||||
struct Z2FxLineEditNode {};
|
||||
class Z2FxLineEditNode : public JAHFrameNode {
|
||||
public:
|
||||
Z2FxLineEditNode(JKRExpHeap*);
|
||||
};
|
||||
|
||||
struct Z2FxLineConfig {
|
||||
/* 0x00 */ u8 field_0x0;
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#ifndef Z2SEVIEW_H
|
||||
#define Z2SEVIEW_H
|
||||
|
||||
#include "JSystem/JAWWinLib/JAWEntrySeView.h"
|
||||
#include "JSystem/JAWWinLib/JAWPlaySeView.h"
|
||||
|
||||
class Z2EntrySeView : public JAWEntrySeViewBasic {
|
||||
public:
|
||||
Z2EntrySeView() {}
|
||||
};
|
||||
|
||||
class Z2PlaySeView : public JAWPlaySeViewBasic {
|
||||
public:
|
||||
Z2PlaySeView() {}
|
||||
};
|
||||
|
||||
#endif /* Z2SEVIEW_H */
|
||||
@@ -0,0 +1,74 @@
|
||||
#ifndef Z2SOUNDPLAYER_H
|
||||
#define Z2SOUNDPLAYER_H
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWWindow.h"
|
||||
#include "JSystem/JAudio2/JAISoundHandles.h"
|
||||
|
||||
class Z2SoundPlayer : public JAWWindow {
|
||||
public:
|
||||
Z2SoundPlayer(const char*);
|
||||
virtual ~Z2SoundPlayer() {}
|
||||
virtual void onDraw(JAWGraphContext*);
|
||||
virtual void frameWork();
|
||||
virtual void onPadProc(const JUTGamePad&);
|
||||
virtual void onTrigA(const JUTGamePad&);
|
||||
virtual void onTrigB(const JUTGamePad&);
|
||||
virtual void onTrigX(const JUTGamePad&);
|
||||
virtual void onTrigY(const JUTGamePad&);
|
||||
virtual void onTrigL(const JUTGamePad&);
|
||||
virtual void onTrigZ(const JUTGamePad&);
|
||||
virtual void onKeyMenu(const JUTGamePad&);
|
||||
virtual void onKeyUp(const JUTGamePad&);
|
||||
virtual void onKeyDown(const JUTGamePad&);
|
||||
virtual void onKeyLeft(const JUTGamePad&);
|
||||
virtual void onKeyRight(const JUTGamePad&);
|
||||
|
||||
u32 getCursorMoveMax(const JUTGamePad&);
|
||||
|
||||
/* 0x3ED */ u8 field_0x3ed;
|
||||
/* 0x3EE */ u8 field_0x3ee;
|
||||
/* 0x3EF */ u8 field_0x3ef;
|
||||
/* 0x3F0 */ u8 field_0x3f0;
|
||||
/* 0x3F4 */ const char* field_0x3f4;
|
||||
/* 0x3F8 */ short field_0x3f8;
|
||||
/* 0x3FA */ short field_0x3fa;
|
||||
/* 0x3FC */ short field_0x3fc;
|
||||
/* 0x3FE */ short field_0x3fe;
|
||||
/* 0x400 */ short field_0x400;
|
||||
/* 0x402 */ short field_0x402;
|
||||
/* 0x404 */ const char* field_0x404;
|
||||
/* 0x408 */ const char* field_0x408;
|
||||
/* 0x40C */ const char* field_0x40c;
|
||||
/* 0x410 */ const char* field_0x410;
|
||||
/* 0x414 */ const char* field_0x414;
|
||||
/* 0x418 */ const char* field_0x418;
|
||||
/* 0x41C */ const char* field_0x41c;
|
||||
/* 0x420 */ const char* field_0x420;
|
||||
/* 0x424 */ const char* field_0x424;
|
||||
/* 0x428 */ const char* field_0x428;
|
||||
/* 0x42C */ const char* field_0x42c;
|
||||
/* 0x430 */ const char* field_0x430;
|
||||
/* 0x434 */ const char* field_0x434;
|
||||
/* 0x438 */ const char* field_0x438;
|
||||
/* 0x43C */ const char* field_0x43c;
|
||||
/* 0x440 */ const char* field_0x440;
|
||||
/* 0x444 */ short field_0x444;
|
||||
/* 0x446 */ u8 field_0x446;
|
||||
/* 0x448 */ short* field_0x448[7];
|
||||
/* 0x464 */ int field_0x464;
|
||||
/* 0x468 */ int field_0x468;
|
||||
/* 0x46C */ JAISoundHandle field_0x46c[8];
|
||||
/* 0x48C */ JAISoundHandles field_0x48c;
|
||||
/* 0x494 */ JAISoundHandle field_0x494;
|
||||
/* 0x498 */ JAISoundHandle* field_0x498;
|
||||
/* 0x49C */ JAISoundHandle field_0x49c;
|
||||
/* 0x4A0 */ int field_0x4a0;
|
||||
/* 0x4A4 */ f32 field_0x4a4;
|
||||
/* 0x4A8 */ f32 field_0x4a8;
|
||||
/* 0x4AC */ f32 field_0x4ac;
|
||||
/* 0x4B0 */ f32 field_0x4b0;
|
||||
/* 0x4B4 */ f32 field_0x4b4;
|
||||
/* 0x4B8 */ f32 field_0x4b8;
|
||||
};
|
||||
|
||||
#endif /* Z2SOUNDPLAYER_H */
|
||||
@@ -0,0 +1,15 @@
|
||||
#ifndef Z2TRACKVIEW_H
|
||||
#define Z2TRACKVIEW_H
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWWindow.h"
|
||||
|
||||
class Z2TrackView : public JAWWindow {
|
||||
public:
|
||||
enum DispMode {
|
||||
DISPMODE0
|
||||
};
|
||||
|
||||
Z2TrackView(u8, DispMode);
|
||||
};
|
||||
|
||||
#endif /* Z2TRACKVIEW_H */
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef Z2WAVEARCLOADER_H
|
||||
#define Z2WAVEARCLOADER_H
|
||||
|
||||
#include "JSystem/JAWExtSystem/JAWWindow.h"
|
||||
|
||||
class Z2WaveArcLoader : public JAWWindow {
|
||||
public:
|
||||
Z2WaveArcLoader();
|
||||
};
|
||||
|
||||
#endif /* Z2WAVEARCLOADER_H */
|
||||
@@ -8,9 +8,20 @@
|
||||
class mDoAud_zelAudio_c : public Z2AudioMgr {
|
||||
public:
|
||||
void reset();
|
||||
mDoAud_zelAudio_c() {}
|
||||
mDoAud_zelAudio_c() {
|
||||
#if DEBUG
|
||||
setMode(2);
|
||||
#endif
|
||||
}
|
||||
~mDoAud_zelAudio_c() {}
|
||||
|
||||
#if DEBUG
|
||||
u8 getMode() { return field_0x13bd; }
|
||||
void setMode(u8 mode) { field_0x13bd = mode; }
|
||||
|
||||
/* 0x13BD */ u8 field_0x13bd;
|
||||
#endif
|
||||
|
||||
static void onInitFlag() { mInitFlag = true; }
|
||||
static bool isInitFlag() { return mInitFlag; }
|
||||
static bool isResetFlag() { return mResetFlag; }
|
||||
@@ -293,6 +304,14 @@ inline void mDoAud_talkIn() {
|
||||
Z2AudioMgr::getInterface()->talkIn();
|
||||
}
|
||||
|
||||
inline void mDoAud_setOutputMode(u32 mode) {
|
||||
Z2AudioMgr::getInterface()->setOutputMode(mode);
|
||||
}
|
||||
|
||||
inline void mDoAud_loadStaticWaves() {
|
||||
Z2AudioMgr::getInterface()->loadStaticWaves();
|
||||
}
|
||||
|
||||
inline int mDoAud_monsSeStart(u32 i_soundId, const Vec* i_pos, u32 i_actorId, u32 param_3,
|
||||
s8 i_reverb) {
|
||||
(void)i_actorId;
|
||||
|
||||
Reference in New Issue
Block a user