Fix another piece of cleanup fallout which appears to have been the cause
of the file save bug. (_dbg_*() should really get the same treatment as *_LOG() to remove this whole class of #ifdef hell.) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5519 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f8b159eb90
commit
e960cf1ce6
|
@ -210,14 +210,16 @@ bool CWII_IPC_HLE_Device_FileIO::Write(u32 _CommandAddress)
|
||||||
|
|
||||||
INFO_LOG(WII_IPC_FILEIO, "FileIO: Write 0x%04x bytes from 0x%08x to %s", Size, Address, m_Name.c_str());
|
INFO_LOG(WII_IPC_FILEIO, "FileIO: Write 0x%04x bytes from 0x%08x to %s", Size, Address, m_Name.c_str());
|
||||||
|
|
||||||
#if MAX_LOGLEVEL >= DEBUG_LEVEL
|
|
||||||
if (m_pFileHandle)
|
if (m_pFileHandle)
|
||||||
{
|
{
|
||||||
size_t Result = fwrite(Memory::GetPointer(Address), Size, 1, m_pFileHandle);
|
size_t Result = fwrite(Memory::GetPointer(Address), Size, 1, m_pFileHandle);
|
||||||
|
#if MAX_LOGLEVEL >= DEBUG_LEVEL
|
||||||
_dbg_assert_msg_(WII_IPC_FILEIO, Result == 1, "fwrite failed");
|
_dbg_assert_msg_(WII_IPC_FILEIO, Result == 1, "fwrite failed");
|
||||||
|
#else
|
||||||
|
(void)Result;
|
||||||
|
#endif
|
||||||
ReturnValue = Size;
|
ReturnValue = Size;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
Memory::Write_U32(ReturnValue, _CommandAddress + 0x4);
|
Memory::Write_U32(ReturnValue, _CommandAddress + 0x4);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue