mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-03 10:31:17 -04:00
21 lines
504 B
C++
21 lines
504 B
C++
//
|
|
// Generated by dtk
|
|
// Translation Unit: JKRFile.cpp
|
|
//
|
|
|
|
#include "JSystem/JKernel/JKRFile.h"
|
|
#include "JSystem/JUtility/JUTAssert.h"
|
|
#include "dolphin/vi/vi.h"
|
|
|
|
/* 802BC610-802BC6B4 .text read__7JKRFileFPvll */
|
|
s32 JKRFile::read(void* data, s32 length, long offset) {
|
|
JUT_ASSERT(34, ( length & 0x1f ) == 0);
|
|
while (true) {
|
|
s32 result = readData(data, length, offset);
|
|
if (length != result)
|
|
VIWaitForRetrace();
|
|
else
|
|
return result;
|
|
}
|
|
}
|