Merge pull request #5581 from shuffle2/move-WriteReturnValue

move IOS::HLE::WriteReturnValue to .cpp file
This commit is contained in:
Leo Lam 2017-06-08 19:02:10 +02:00 committed by GitHub
commit 9ec14eb17f
2 changed files with 6 additions and 6 deletions

View file

@ -168,6 +168,11 @@ static bool SetupMemory(u64 ios_title_id, MemorySetupType setup_type)
return true; return true;
} }
void WriteReturnValue(s32 value, u32 address)
{
Memory::Write_U32(static_cast<u32>(value), address);
}
// IOS used by the latest System Menu (4.3). // IOS used by the latest System Menu (4.3).
constexpr u64 IOS80_TITLE_ID = 0x0000000100000050; constexpr u64 IOS80_TITLE_ID = 0x0000000100000050;
constexpr u64 BC_TITLE_ID = 0x0000000100000100; constexpr u64 BC_TITLE_ID = 0x0000000100000100;

View file

@ -14,7 +14,6 @@
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "Core/CoreTiming.h" #include "Core/CoreTiming.h"
#include "Core/HW/Memmap.h"
#include "Core/HW/SystemTimers.h" #include "Core/HW/SystemTimers.h"
#include "Core/IOS/IOSC.h" #include "Core/IOS/IOSC.h"
@ -83,11 +82,7 @@ enum ProcessId : u32
PID_UNKNOWN = 19, PID_UNKNOWN = 19,
}; };
template <typename T> void WriteReturnValue(s32 value, u32 address);
void WriteReturnValue(T value, u32 address)
{
Memory::Write_U32(static_cast<u32>(value), address);
}
// HLE for the IOS kernel: IPC, device management, syscalls, and Dolphin-specific, IOS-wide calls. // HLE for the IOS kernel: IPC, device management, syscalls, and Dolphin-specific, IOS-wide calls.
class Kernel class Kernel