From 55062afea968267d6e7b3c2c7806e652ac7d8c22 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Thu, 8 Jun 2017 00:07:10 -0700 Subject: [PATCH] move IOS::HLE::WriteReturnValue to .cpp file --- Source/Core/Core/IOS/IOS.cpp | 5 +++++ Source/Core/Core/IOS/IOS.h | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Core/Core/IOS/IOS.cpp b/Source/Core/Core/IOS/IOS.cpp index 56cb56ae10..eecab887b8 100644 --- a/Source/Core/Core/IOS/IOS.cpp +++ b/Source/Core/Core/IOS/IOS.cpp @@ -168,6 +168,11 @@ static bool SetupMemory(u64 ios_title_id, MemorySetupType setup_type) return true; } +void WriteReturnValue(s32 value, u32 address) +{ + Memory::Write_U32(static_cast(value), address); +} + // IOS used by the latest System Menu (4.3). constexpr u64 IOS80_TITLE_ID = 0x0000000100000050; constexpr u64 BC_TITLE_ID = 0x0000000100000100; diff --git a/Source/Core/Core/IOS/IOS.h b/Source/Core/Core/IOS/IOS.h index 6c49a70ec4..b7604b0d23 100644 --- a/Source/Core/Core/IOS/IOS.h +++ b/Source/Core/Core/IOS/IOS.h @@ -14,7 +14,6 @@ #include "Common/CommonTypes.h" #include "Core/CoreTiming.h" -#include "Core/HW/Memmap.h" #include "Core/HW/SystemTimers.h" #include "Core/IOS/IOSC.h" @@ -83,11 +82,7 @@ enum ProcessId : u32 PID_UNKNOWN = 19, }; -template -void WriteReturnValue(T value, u32 address) -{ - Memory::Write_U32(static_cast(value), address); -} +void WriteReturnValue(s32 value, u32 address); // HLE for the IOS kernel: IPC, device management, syscalls, and Dolphin-specific, IOS-wide calls. class Kernel