mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-07-30 23:44:32 -04:00
libjsys/jsyswrapper: match all funcs, need unused for weak function emission?
This commit is contained in:
@@ -98,12 +98,16 @@ class JFWDisplay {
|
||||
return sManager;
|
||||
}
|
||||
|
||||
const GXRenderModeObj* getRenderMode() const {
|
||||
return mRMode;
|
||||
}
|
||||
|
||||
int getEfbHeight() const {
|
||||
return JUTVideo::getManager()->getEfbHeight();
|
||||
return getRenderMode() ->efbHeight;
|
||||
}
|
||||
|
||||
int getEfbWidth() const {
|
||||
return JUTVideo::getManager()->getFbWidth();
|
||||
return getRenderMode() ->fbWidth;
|
||||
}
|
||||
|
||||
JUTFader* getFader() const {
|
||||
@@ -151,6 +155,15 @@ class JFWDisplay {
|
||||
return mEnableAlpha;
|
||||
}
|
||||
|
||||
void setGamma(u16 gamma) {
|
||||
mGamma = gamma;
|
||||
}
|
||||
|
||||
void setFrameRate(u16 framerate) {
|
||||
mFrameRate = framerate;
|
||||
mTickRate = 0;
|
||||
}
|
||||
|
||||
static JFWDisplay* sManager; // 0x80415718
|
||||
|
||||
private:
|
||||
|
||||
@@ -62,6 +62,18 @@ struct JFWSystem {
|
||||
JUT_ASSERT(sInitCalled == 0);
|
||||
CSetUpParam::renderMode = rmode;
|
||||
}
|
||||
static JKRHeap* getSystemHeap() {
|
||||
JUT_ASSERT(sInitCalled == 0);
|
||||
return systemHeap;
|
||||
}
|
||||
static JKRHeap* getRootHeap() {
|
||||
JUT_ASSERT(sInitCalled == 0);
|
||||
return rootHeap;
|
||||
}
|
||||
static JUTConsole* getSystemConsole() {
|
||||
JUT_ASSERT(sInitCalled == 0);
|
||||
return systemConsole;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -120,7 +120,7 @@ class JKRHeap : public JKRDisposer {
|
||||
void freeAll();
|
||||
void freeTail();
|
||||
void fillFreeArea();
|
||||
void resize(void*, u32);
|
||||
s32 resize(void*, u32);
|
||||
static s32 getSize(void*, JKRHeap*);
|
||||
|
||||
// ... more functions
|
||||
|
||||
@@ -2,7 +2,26 @@
|
||||
#define JSYSTEM_H
|
||||
|
||||
#include "JSystem/JKernel/JKRAram.h"
|
||||
#include "JSystem/JKernel/JKRFileLoader.h"
|
||||
#include "JSystem/JKernel/JKRArchive.h"
|
||||
#include "JSystem/JMacro.h"
|
||||
#include "JSystem/JUtility/JUTException.h"
|
||||
|
||||
// probably a better place to put these
|
||||
static inline void* JKRGetResource(const char* resourceName) {
|
||||
return JKRFileLoader::getGlbResource(resourceName);
|
||||
}
|
||||
|
||||
static inline void JKRRemoveResource(void* resource) {
|
||||
JKRFileLoader::removeResource(resource, nullptr);
|
||||
}
|
||||
|
||||
static inline BOOL JKRDetachResource(void* resource) {
|
||||
return JKRFileLoader::detachResource(resource, nullptr);
|
||||
}
|
||||
|
||||
static inline void* JKRGetResourceEntry_byName(u32 root_name, const char* res_name, JKRArchive* archive) {
|
||||
return archive->findTypeResource(root_name, res_name);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -13,6 +13,9 @@ void flushMessage();
|
||||
void flushMessage_dbPrint();
|
||||
u32 getSDevice(void);
|
||||
|
||||
void changeDisplayTime(u32 time);
|
||||
void changeDevice(u32 device);
|
||||
|
||||
void showAssert_f(u32 device, char const* file, int line, char const* errormsg, ...);
|
||||
inline void showAssert(u32 device, char const* file, int line, char const* errormsg) {
|
||||
showAssert_f(device, file, line, "%s", errormsg);
|
||||
|
||||
@@ -105,11 +105,16 @@ struct JUTException : public JKRThread {
|
||||
void setTraceSuppress(u32 supress) {
|
||||
mTraceSuppress = supress;
|
||||
}
|
||||
|
||||
void setGamePad(JUTGamePad* gamePad) {
|
||||
mGamePad = gamePad;
|
||||
mPadPort = JUTGamePad::Port_Invalid;
|
||||
}
|
||||
|
||||
void enterAllPad() {
|
||||
setGamePad((JUTGamePad*)-1);
|
||||
}
|
||||
|
||||
static JUTException* getManager() {
|
||||
return sErrorManager;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user