mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-25 15:05:06 -04:00
16 lines
376 B
C++
16 lines
376 B
C++
#include "JSystem/JSystem.h" // IWYU pragma: keep
|
|
|
|
#include "JSystem/JKernel/JKRFile.h"
|
|
#include "dolphin/vi.h"
|
|
|
|
void JKRFile::read(void* data, s32 length, s32 offset) {
|
|
JUT_ASSERT(32, ( length & 0x1f ) == 0);
|
|
while (true) {
|
|
if (length != readData(data, length, offset)) {
|
|
VIWaitForRetrace();
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
}
|