diff options
| author | TakaRikka <38417346+TakaRikka@users.noreply.github.com> | 2022-02-07 17:47:45 -0800 |
|---|---|---|
| committer | TakaRikka <38417346+TakaRikka@users.noreply.github.com> | 2022-02-07 17:47:45 -0800 |
| commit | 2e1be6224fa8689d1e309df8c3d18ad4e91b83e5 (patch) | |
| tree | 4e1b61a50e1d4835187a924400ed9ed821af80c0 /include/JSystem/JKernel | |
| parent | 92a4cd174ea89e7e8f149892e3e158f62c83cbf0 (diff) | |
jdflyer's work
Co-Authored-By: jdflyer <jdflyer10@gmail.com>
Diffstat (limited to 'include/JSystem/JKernel')
| -rw-r--r-- | include/JSystem/JKernel/JKRArchive.h | 4 | ||||
| -rw-r--r-- | include/JSystem/JKernel/JKRDvdRipper.h | 8 | ||||
| -rw-r--r-- | include/JSystem/JKernel/JKRHeap.h | 8 |
3 files changed, 20 insertions, 0 deletions
diff --git a/include/JSystem/JKernel/JKRArchive.h b/include/JSystem/JKernel/JKRArchive.h index 9c413274ec..31991837d2 100644 --- a/include/JSystem/JKernel/JKRArchive.h +++ b/include/JSystem/JKernel/JKRArchive.h @@ -222,4 +222,8 @@ inline void* JKRGetTypeResource(u32 tag, const char* name, JKRArchive* arc) { return JKRArchive::getGlbResource(tag, name, arc); } +inline void* JKRGetResource(u32 tag, const char* name, JKRArchive* arc) { + return JKRArchive::getGlbResource(tag, name, arc); +} + #endif
\ No newline at end of file diff --git a/include/JSystem/JKernel/JKRDvdRipper.h b/include/JSystem/JKernel/JKRDvdRipper.h index b333a87de0..8248d167a2 100644 --- a/include/JSystem/JKernel/JKRDvdRipper.h +++ b/include/JSystem/JKernel/JKRDvdRipper.h @@ -43,4 +43,12 @@ inline void* JKRDvdToMainRam(s32 entryNum, u8* dst, JKRExpandSwitch expandSwitch offset, compression, returnSize); } +inline void* JKRDvdToMainRam(char const* param_0, u8* dst, JKRExpandSwitch expandSwitch, + u32 dstLength, JKRHeap* heap, + JKRDvdRipper::EAllocDirection allocDirection, u32 offset, + JKRCompression* compression, u32* returnSize) { + return JKRDvdRipper::loadToMainRAM(param_0, dst, expandSwitch, dstLength, heap, allocDirection, + offset, compression, returnSize); +} + #endif /* JKRDVDRIPPER_H */ diff --git a/include/JSystem/JKernel/JKRHeap.h b/include/JSystem/JKernel/JKRHeap.h index 74fd1e2840..f2194cb7a8 100644 --- a/include/JSystem/JKernel/JKRHeap.h +++ b/include/JSystem/JKernel/JKRHeap.h @@ -225,4 +225,12 @@ inline u32 JKRGetMemBlockSize(JKRHeap* heap, void* block) { return JKRHeap::getSize(block, heap); } +inline void* JKRAlloc(u32 size, int alignment) { + return JKRHeap::alloc(size, alignment, NULL); +} + +inline s32 JKRResizeMemBlock(JKRHeap* heap, void* ptr, u32 size) { + return JKRHeap::resize(ptr, size, heap); +} + #endif /* JKRHEAP_H */ |
