blob: b267e932356bbe292018aef451574cc56cccbb11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#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;
}
}
}
|