Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "Only delay DI command replies."
Fix "Wii Party" again.

This reverts commit fb5b5e8.
  • Loading branch information
jordan-woyak committed Feb 5, 2013
1 parent d0190fa commit 937d9e9
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
8 changes: 2 additions & 6 deletions Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.cpp
Expand Up @@ -405,7 +405,6 @@ void ExecuteCommand(u32 _Address)
else
{
delete pDevice;
pDevice = NULL;
}
}

Expand Down Expand Up @@ -436,10 +435,7 @@ void ExecuteCommand(u32 _Address)

// Don't delete hardware
if (!pDevice->IsHardware())
{
delete pDevice;
pDevice = NULL;
}
}
else
{
Expand Down Expand Up @@ -519,8 +515,8 @@ void ExecuteCommand(u32 _Address)
if (CmdSuccess)
{
// Generate a reply to the IPC command
int const reply_delay = pDevice ? pDevice->GetCmdDelay(_Address) : 0;
EnqReply(_Address, reply_delay);
// TODO: should probably figure out which commands need delayed replies and which don't
EnqReply(_Address, SystemTimers::GetTicksPerSecond() / 100);
}
else
{
Expand Down
2 changes: 0 additions & 2 deletions Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device.h
Expand Up @@ -95,8 +95,6 @@ class IWII_IPC_HLE_Device
virtual bool IOCtlV (u32) { UNIMPLEMENTED_CMD(IOCtlV) }
#undef UNIMPLEMENTED_CMD

virtual int GetCmdDelay(u32) { return 0; }

virtual u32 Update() { return 0; }

virtual bool IsHardware() { return m_Hardware; }
Expand Down
6 changes: 0 additions & 6 deletions Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_DI.cpp
Expand Up @@ -28,7 +28,6 @@
#include "VolumeCreator.h"
#include "Filesystem.h"
#include "LogManager.h"
#include "../HW/SystemTimers.h"

#include "../../DiscIO/Src/FileMonitor.h"

Expand Down Expand Up @@ -461,8 +460,3 @@ u32 CWII_IPC_HLE_Device_di::ExecuteCommand(u32 _BufferIn, u32 _BufferInSize, u32
// i dunno but prolly 1 is okay all the time :)
return 1;
}

int CWII_IPC_HLE_Device_di::GetCmdDelay(u32)
{
return SystemTimers::GetTicksPerSecond() / 100;
}
2 changes: 0 additions & 2 deletions Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_DI.h
Expand Up @@ -38,8 +38,6 @@ class CWII_IPC_HLE_Device_di : public IWII_IPC_HLE_Device

bool IOCtl(u32 _CommandAddress);
bool IOCtlV(u32 _CommandAddress);

int GetCmdDelay(u32);

private:

Expand Down

0 comments on commit 937d9e9

Please sign in to comment.