Setup msm decompiling
Decompiled msmfio.c
This commit is contained in:
parent
52e7394e4e
commit
863b4c50ac
3 changed files with 49 additions and 3 deletions
43
src/msm/msmfio.c
Normal file
43
src/msm/msmfio.c
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
#include "dolphin.h"
|
||||
|
||||
struct msmFio {
|
||||
BOOL (*open)(s32, DVDFileInfo *);
|
||||
BOOL (*read)(DVDFileInfo *, void *, s32, s32, s32);
|
||||
BOOL (*close)(DVDFileInfo *);
|
||||
};
|
||||
|
||||
static struct msmFio fio;
|
||||
|
||||
BOOL msmFioClose(DVDFileInfo *fileInfo)
|
||||
{
|
||||
return fio.close(fileInfo);
|
||||
}
|
||||
|
||||
BOOL msmFioRead(DVDFileInfo *fileInfo, void *addr, s32 length, s32 offset)
|
||||
{
|
||||
return fio.read(fileInfo, addr, length, offset, 2);
|
||||
}
|
||||
|
||||
BOOL msmFioOpen(s32 entrynum, DVDFileInfo *fileInfo)
|
||||
{
|
||||
return fio.open(entrynum, fileInfo);
|
||||
}
|
||||
|
||||
void msmFioInit(void *open, void *read, void *close)
|
||||
{
|
||||
if(open) {
|
||||
fio.open = open;
|
||||
} else {
|
||||
fio.open = DVDFastOpen;
|
||||
}
|
||||
if(read) {
|
||||
fio.read = read;
|
||||
} else {
|
||||
fio.read = DVDReadPrio;
|
||||
}
|
||||
if(close) {
|
||||
fio.close = close;
|
||||
} else {
|
||||
fio.close = DVDClose;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue