summaryrefslogtreecommitdiff
path: root/libs/JSystem/src/JKernel/JKRFile.cpp
blob: 9aed6945fd53083b18ebca79186e2959b63cfa52 (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 <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;
        }
    }
}