mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-06-08 11:47:05 -04:00
80ef14e480
* match and link JKRAram.cpp * match and link JKRExpHeap * match and link JKRAramStream.cpp * match and link JKRFileLoader.cpp * match and link JKRFileFinder.cpp * JKernel Dump * match and link JKRAramArchive.cpp * match and link JKRDvdArchive.cpp * match and link JKRCompArchive.cpp * match but not link JKRDvdAramRipper * small refactors * match and link JKRThread.cpp * fix and link JKRDvdAramStream.cpp * Formatting fixes --------- Co-authored-by: SwareJonge <olaf23okken@gmail.com>
44 lines
604 B
C++
44 lines
604 B
C++
#include "JSystem/JKernel/JKRFile.h"
|
|
#include "dolphin/vi.h"
|
|
|
|
#ifdef JSYSTEM_DEBUG
|
|
#include "JSystem/JUtility/JUTAssertion.h"
|
|
#endif
|
|
|
|
/* Empty space for aligning line numbers */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Nonmatched function. Unused in Animal Crossing.
|
|
*/
|
|
void JKRFile::read(void* data, s32 length, s32 ofs) {
|
|
#ifdef JSYSTEM_DEBUG
|
|
if (!JKR_ISALIGNED(length, 32)) {
|
|
JUTAssertion::showAssert(JUTAssertion::getSDevice(), __FILE__, __LINE__, "( length & 0x1f ) == 0");
|
|
}
|
|
#endif
|
|
|
|
while (true) {
|
|
if (this->readData(data, length, ofs) == length) {
|
|
return;
|
|
}
|
|
|
|
VIWaitForRetrace();
|
|
}
|
|
}
|