mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-05 00:40:00 +00:00
wii sd: final revision to it, i think :p. Remove some logging that could slow stuff down
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3048 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
c89ab7ba02
commit
409ec4ba5c
@ -33,7 +33,7 @@ CWII_IPC_HLE_Device_sdio_slot0::CWII_IPC_HLE_Device_sdio_slot0(u32 _DeviceID, co
|
|||||||
m_BlockLength = 0;
|
m_BlockLength = 0;
|
||||||
m_BusWidth = 0;
|
m_BusWidth = 0;
|
||||||
// Clear the whole SD Host Control Register
|
// Clear the whole SD Host Control Register
|
||||||
//Memory::Memset(SDIO_BASE, 0, 0x100);
|
Memory::Memset(SDIO_BASE, 0, 0x100);
|
||||||
}
|
}
|
||||||
|
|
||||||
CWII_IPC_HLE_Device_sdio_slot0::~CWII_IPC_HLE_Device_sdio_slot0()
|
CWII_IPC_HLE_Device_sdio_slot0::~CWII_IPC_HLE_Device_sdio_slot0()
|
||||||
@ -376,11 +376,7 @@ u32 CWII_IPC_HLE_Device_sdio_slot0::ExecuteCommand(u32 _BufferIn, u32 _BufferInS
|
|||||||
}
|
}
|
||||||
|
|
||||||
size_t nWritten = fwrite(buffer, req.bsize, req.blocks, m_Card);
|
size_t nWritten = fwrite(buffer, req.bsize, req.blocks, m_Card);
|
||||||
if (nWritten == req.blocks)
|
if (nWritten != req.blocks)
|
||||||
{
|
|
||||||
ERROR_LOG(WII_IPC_SD, "%s", ArrayToString(buffer, size).c_str());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
ERROR_LOG(WII_IPC_SD, "Write Failed - wrote %x, error %i, eof? %i",
|
ERROR_LOG(WII_IPC_SD, "Write Failed - wrote %x, error %i, eof? %i",
|
||||||
nWritten, ferror(m_Card), feof(m_Card));
|
nWritten, ferror(m_Card), feof(m_Card));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user