Added shutdown command to fs, but did not implement

This commit is contained in:
Matthew Parlane 2012-02-17 21:50:00 +13:00
parent 7fa0ffa6d5
commit 2d5e80d36c
2 changed files with 8 additions and 2 deletions

View File

@ -489,7 +489,12 @@ s32 CWII_IPC_HLE_Device_fs::ExecuteCommand(u32 _Parameter, u32 _BufferIn, u32 _B
return FS_RESULT_OK; return FS_RESULT_OK;
} }
break; break;
case IOCTL_SHUTDOWN:
{
INFO_LOG(WII_IPC_FILEIO, "Wii called Shutdown()");
// TODO: stop emulation
}
break;
default: default:
ERROR_LOG(WII_IPC_FILEIO, "CWII_IPC_HLE_Device_fs::IOCtl: ni 0x%x", _Parameter); ERROR_LOG(WII_IPC_FILEIO, "CWII_IPC_HLE_Device_fs::IOCtl: ni 0x%x", _Parameter);
PanicAlert("CWII_IPC_HLE_Device_fs::IOCtl: ni 0x%x", _Parameter); PanicAlert("CWII_IPC_HLE_Device_fs::IOCtl: ni 0x%x", _Parameter);

View File

@ -68,7 +68,8 @@ private:
IOCTL_DELETE_FILE = 0x07, IOCTL_DELETE_FILE = 0x07,
IOCTL_RENAME_FILE = 0x08, IOCTL_RENAME_FILE = 0x08,
IOCTL_CREATE_FILE = 0x09, IOCTL_CREATE_FILE = 0x09,
IOCTLV_GETUSAGE = 0x0C IOCTLV_GETUSAGE = 0x0C,
IOCTL_SHUTDOWN = 0x0D
}; };
s32 ExecuteCommand(u32 Parameter, u32 _BufferIn, u32 _BufferInSize, u32 _BufferOut, u32 _BufferOutSize); s32 ExecuteCommand(u32 Parameter, u32 _BufferIn, u32 _BufferInSize, u32 _BufferOut, u32 _BufferOutSize);