diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp index 277ff0a267..b38315d522 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp @@ -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; } diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.h b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.h index 566b8d2f00..79d7552a69 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.h +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.h @@ -65,6 +65,8 @@ private: FILE* m_pFileHandle; u32 m_FileLength; u32 m_Seek; + + std::string m_Filename; }; #endif