added some more debug info

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@999 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
fires.gc 2008-10-29 11:24:49 +00:00
parent 07a6b2dec5
commit d1f90c3e09
2 changed files with 7 additions and 4 deletions

View File

@ -52,6 +52,7 @@ CWII_IPC_HLE_Device_FileIO::Open(u32 _CommandAddress)
std::string Filename("WII");
Filename += GetDeviceName();
m_Filename = Filename;
m_pFileHandle = fopen(Filename.c_str(), "r+b");
if (m_pFileHandle != NULL)
@ -75,7 +76,7 @@ CWII_IPC_HLE_Device_FileIO::Seek(u32 _CommandAddress)
LOG(WII_IPC_HLE, "FileIO: Seek (Device=%s)", GetDeviceName().c_str());
DumpCommands(_CommandAddress);
PanicAlert("CWII_IPC_HLE_Device_FileIO: Seek");
PanicAlert("CWII_IPC_HLE_Device_FileIO: Seek (%s)", m_Filename.c_str());
u32 ReturnValue = 1;
Memory::Write_U32(ReturnValue, _CommandAddress + 0x4);
@ -112,7 +113,7 @@ CWII_IPC_HLE_Device_FileIO::Write(u32 _CommandAddress)
LOG(WII_IPC_HLE, "FileIO: Write (Device=%s)", GetDeviceName().c_str());
DumpCommands(_CommandAddress);
//PanicAlert("CWII_IPC_HLE_Device_FileIO: Write (Device=%s)", GetDeviceName().c_str());
// PanicAlert("CWII_IPC_HLE_Device_FileIO: Write (Device=%s)", GetDeviceName().c_str());
u32 ReturnValue = 1;
Memory::Write_U32(ReturnValue, _CommandAddress + 0x4);
@ -143,6 +144,8 @@ CWII_IPC_HLE_Device_FileIO::IOCtl(u32 _CommandAddress)
Memory::Write_U32(m_FileLength, BufferOut);
Memory::Write_U32(m_Seek, BufferOut+4);
PanicAlert("ISFS_IOCTL_GETFILESTATS: %s", m_Filename.c_str());
}
break;
@ -158,7 +161,5 @@ CWII_IPC_HLE_Device_FileIO::IOCtl(u32 _CommandAddress)
u32 ReturnValue = 0; // no error
Memory::Write_U32(ReturnValue, _CommandAddress + 0x4);
CCPU::Break();
return true;
}

View File

@ -65,6 +65,8 @@ private:
FILE* m_pFileHandle;
u32 m_FileLength;
u32 m_Seek;
std::string m_Filename;
};
#endif