diff options
author | Subv <subv2112@gmail.com> | 2016-04-19 21:08:02 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2016-05-28 20:52:49 +0200 |
commit | 660499ac01b9244301a0642f4a0209ef8309ace4 (patch) | |
tree | 372686ef656f18c9afdf80fb9599399b7b4d43e6 /src/core/hle/service/frd | |
parent | SOC_U: Remove usage of GetPointer (diff) | |
download | yuzu-660499ac01b9244301a0642f4a0209ef8309ace4.tar yuzu-660499ac01b9244301a0642f4a0209ef8309ace4.tar.gz yuzu-660499ac01b9244301a0642f4a0209ef8309ace4.tar.bz2 yuzu-660499ac01b9244301a0642f4a0209ef8309ace4.tar.lz yuzu-660499ac01b9244301a0642f4a0209ef8309ace4.tar.xz yuzu-660499ac01b9244301a0642f4a0209ef8309ace4.tar.zst yuzu-660499ac01b9244301a0642f4a0209ef8309ace4.zip |
Diffstat (limited to 'src/core/hle/service/frd')
-rw-r--r-- | src/core/hle/service/frd/frd.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/core/hle/service/frd/frd.cpp b/src/core/hle/service/frd/frd.cpp index 15d604bb6..29d144365 100644 --- a/src/core/hle/service/frd/frd.cpp +++ b/src/core/hle/service/frd/frd.cpp @@ -23,7 +23,7 @@ void GetMyPresence(Service::Interface* self) { ASSERT(shifted_out_size == ((sizeof(MyPresence) << 14) | 2)); - Memory::WriteBlock(my_presence_addr, reinterpret_cast<const u8*>(&my_presence), sizeof(MyPresence)); + Memory::WriteBlock(my_presence_addr, &my_presence, sizeof(MyPresence)); cmd_buff[1] = RESULT_SUCCESS.raw; // No error @@ -39,8 +39,7 @@ void GetFriendKeyList(Service::Interface* self) { FriendKey zero_key = {}; for (u32 i = 0; i < frd_count; ++i) { - Memory::WriteBlock(frd_key_addr + i * sizeof(FriendKey), - reinterpret_cast<const u8*>(&zero_key), sizeof(FriendKey)); + Memory::WriteBlock(frd_key_addr + i * sizeof(FriendKey), &zero_key, sizeof(FriendKey)); } cmd_buff[1] = RESULT_SUCCESS.raw; // No error @@ -58,8 +57,7 @@ void GetFriendProfile(Service::Interface* self) { Profile zero_profile = {}; for (u32 i = 0; i < count; ++i) { - Memory::WriteBlock(profiles_addr + i * sizeof(Profile), - reinterpret_cast<const u8*>(&zero_profile), sizeof(Profile)); + Memory::WriteBlock(profiles_addr + i * sizeof(Profile), &zero_profile, sizeof(Profile)); } cmd_buff[1] = RESULT_SUCCESS.raw; // No error @@ -88,7 +86,7 @@ void GetMyFriendKey(Service::Interface* self) { u32* cmd_buff = Kernel::GetCommandBuffer(); cmd_buff[1] = RESULT_SUCCESS.raw; // No error - Memory::WriteBlock(cmd_buff[2], reinterpret_cast<const u8*>(&my_friend_key), sizeof(FriendKey)); + Memory::WriteBlock(cmd_buff[2], &my_friend_key, sizeof(FriendKey)); LOG_WARNING(Service_FRD, "(STUBBED) called"); } |