Skip to content

Commit

Permalink
Update SifSendCmd's return value.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd002 committed Nov 6, 2024
1 parent e16f5e7 commit 11faba0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/iop/Iop_SifCmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 840,7 @@ uint32 CSifCmd::SifSendCmd(uint32 commandId, uint32 packetPtr, uint32 packetSize

m_sifMan.SendPacket(packetData, packetSize);

return 1;
return CSifMan::SIFDMA_XFER_ID;
}

void CSifCmd::SifBindRpc(CMIPS& context)
Expand Down
2 changes: 0 additions & 2 deletions Source/iop/Iop_SifMan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 13,6 @@

using namespace Iop;

constexpr uint32 SIFDMA_XFER_ID = 0x2222;

std::string CSifMan::GetId() const
{
return "sifman";
Expand Down
2 changes: 2 additions & 0 deletions Source/iop/Iop_SifMan.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 11,8 @@ namespace Iop
class CSifMan : public CModule
{
public:
static constexpr uint32 SIFDMA_XFER_ID = 0x2222;

typedef std::function<void(const std::string&)> ModuleResetHandler;
typedef std::function<void(uint32)> CustomCommandHandler;

Expand Down

0 comments on commit 11faba0

Please sign in to comment.