mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-12 21:14:38 -04:00
More Jsystem stuff (#395)
* JASProbe OK * JASRegisterParam OK * Import JASReport * JASDvdThread OK
This commit is contained in:
@@ -8,7 +8,7 @@ class JASTaskThread;
|
||||
class JASDvd {
|
||||
public:
|
||||
/* 8028FEFC */ static JASTaskThread* getThreadPointer();
|
||||
/* 8028FF04 */ void createThread(s32, int, u32);
|
||||
/* 8028FF04 */ static bool createThread(s32, int, u32);
|
||||
|
||||
static JASTaskThread* sThread;
|
||||
};
|
||||
|
||||
@@ -122,4 +122,7 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
struct JKRSolidHeap;
|
||||
extern JKRSolidHeap* JASDram;
|
||||
|
||||
#endif /* JASHEAPCTRL_H */
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
#ifndef JASMUTEX_H
|
||||
#define JASMUTEX_H
|
||||
|
||||
#include "dolphin/os/OSMutex.h"
|
||||
|
||||
struct JASMutexLock {
|
||||
JASMutexLock(OSMutex* mutex) {
|
||||
mMutex = mutex;
|
||||
OSLockMutex(mMutex);
|
||||
}
|
||||
~JASMutexLock() { OSUnlockMutex(mMutex); }
|
||||
|
||||
/* 0x0 */ OSMutex* mMutex;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -3,4 +3,22 @@
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
struct JASProbe {
|
||||
/* 80290EE4 */ static void start(s32, char const*);
|
||||
/* 80290D74 */ void start(char const*);
|
||||
/* 80290DC4 */ void stop();
|
||||
/* 80290F24 */ static void stop(s32);
|
||||
|
||||
static JASProbe* sProbeTable[16];
|
||||
|
||||
/* 0x000 */ char const* mName;
|
||||
/* 0x004 */ long mStartTime;
|
||||
/* 0x008 */ f32 _08;
|
||||
/* 0x00C */ f32 _0C;
|
||||
/* 0x010 */ f32 _10;
|
||||
/* 0x014 */ f32 _14;
|
||||
/* 0x018 */ f32 _18[100];
|
||||
/* 0x1A8 */ u32 _1A8;
|
||||
};
|
||||
|
||||
#endif /* JASPROBE_H */
|
||||
|
||||
@@ -3,4 +3,17 @@
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
struct JASRegisterParam {
|
||||
enum RegID {
|
||||
|
||||
};
|
||||
|
||||
/* 80293644 */ JASRegisterParam();
|
||||
/* 80293664 */ void init();
|
||||
/* 80293684 */ void write(JASRegisterParam::RegID, u32);
|
||||
/* 802937B8 */ u32 read(JASRegisterParam::RegID);
|
||||
|
||||
u16 field_0x0[14];
|
||||
};
|
||||
|
||||
#endif /* JASREGISTERPARAM_H */
|
||||
|
||||
@@ -18,6 +18,7 @@ public:
|
||||
|
||||
/* 0x7C */ OSThreadQueue* mpThreadQueue;
|
||||
/* 0x84 */ bool field_0x84;
|
||||
/* 0x88 */ u32 field_0x88;
|
||||
};
|
||||
|
||||
#endif /* JASTASKTHREAD_H */
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
#include "JSystem/JSupport/JSUList.h"
|
||||
#include "dol2asm.h"
|
||||
#include "dolphin/os/OSMutex.h"
|
||||
#include "dolphin/types.h"
|
||||
#include "dolphin/os/OSMutex.h"
|
||||
|
||||
class JKRHeap;
|
||||
class JKRSolidHeap;
|
||||
@@ -93,14 +93,4 @@ struct JASWaveArc : JASDisposer {
|
||||
/* 0x5C */ OSMutex mMutex;
|
||||
};
|
||||
|
||||
struct JASMutexLock {
|
||||
JASMutexLock(OSMutex* mutex) {
|
||||
mMutex = mutex;
|
||||
OSLockMutex(mMutex);
|
||||
}
|
||||
~JASMutexLock() { OSUnlockMutex(mMutex); }
|
||||
|
||||
/* 0x0 */ OSMutex* mMutex;
|
||||
};
|
||||
|
||||
#endif /* JASWAVEARCLOADER_H */
|
||||
|
||||
Reference in New Issue
Block a user