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:
Soren Jorvang 2010-05-27 21:28:48 +00:00
parent f8b159eb90
commit e960cf1ce6
1 changed files with 6 additions and 4 deletions

View File

@ -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());
#if MAX_LOGLEVEL >= DEBUG_LEVEL
if (m_pFileHandle)
{
size_t Result = fwrite(Memory::GetPointer(Address), Size, 1, m_pFileHandle);
_dbg_assert_msg_(WII_IPC_FILEIO, Result == 1, "fwrite failed");
ReturnValue = Size;
}
#if MAX_LOGLEVEL >= DEBUG_LEVEL
_dbg_assert_msg_(WII_IPC_FILEIO, Result == 1, "fwrite failed");
#else
(void)Result;
#endif
ReturnValue = Size;
}
Memory::Write_U32(ReturnValue, _CommandAddress + 0x4);
return true;