mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-03 18:36:06 -04:00
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// 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("JKRFile.cpp", 34, ( length & 0x1f ) == 0);
|
||||
while (true) {
|
||||
s32 result = readData(data, length, offset);
|
||||
if (length != result)
|
||||
VIWaitForRetrace();
|
||||
else
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user