mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-05-23 06:34:18 -04:00
libjsys/jsyswrapper: match all funcs, need unused for weak function emission?
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user