Switch to ogc2
This commit is contained in:
@@ -20,7 +20,7 @@ errorret_t assetInitDolphinDVD(void) {
|
||||
if(!hdr) errorThrow("Failed to read DVD disc header.");
|
||||
u32 fstOff = assetDolphinDVDReadBigEndian32(hdr + 0x424);
|
||||
u32 fstSize = assetDolphinDVDReadBigEndian32(hdr + 0x428);
|
||||
free(hdr);
|
||||
memoryFree(hdr);
|
||||
|
||||
// Read the FST
|
||||
u8 *fst = (u8 *)assetDolphinDVDRead((s64)fstOff, fstSize);
|
||||
@@ -71,8 +71,8 @@ void *assetDolphinDVDRead(const s64 offset, const u32 size) {
|
||||
void *buf = memoryAlign(ASSET_DOLPHIN_DVD_ALIGN, padded);
|
||||
if(!buf) return NULL;
|
||||
DCInvalidateRange(buf, padded);
|
||||
dvdcmdblk block;
|
||||
if(DVD_ReadPrio(&block, buf, padded, offset, 0) <= 0) {
|
||||
static dvdcmdblk block;
|
||||
if(DVD_ReadAbs(&block, buf, padded, offset) <= 0) {
|
||||
memoryFree(buf);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user