Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stub FRD::GetFriendRelationship #289

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/services/frd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class FRDService {
void getFriendKeyList(u32 messagePointer);
void getFriendPresence(u32 messagePointer);
void getFriendProfile(u32 messagePointer);
void getFriendRelationship(u32 messagePointer);
void getMyComment(u32 messagePointer);
void getMyFavoriteGame(u32 messagePointer);
void getMyFriendKey(u32 messagePointer);
Expand Down
10 changes: 10 additions & 0 deletions src/core/services/frd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ namespace FRDCommands {
GetFriendKeyList = 0x00110080,
GetFriendPresence = 0x00120042,
GetFriendProfile = 0x00150042,
GetFriendRelationship = 0x00160042,
GetFriendAttributeFlags = 0x00170042,
UpdateGameModeDescription = 0x001D0002,

Expand All @@ -40,6 +41,7 @@ void FRDService::handleSyncRequest(u32 messagePointer, FRDService::Type type) {
case FRDCommands::GetFriendKeyList: getFriendKeyList(messagePointer); break;
case FRDCommands::GetFriendPresence: getFriendPresence(messagePointer); break;
case FRDCommands::GetFriendProfile: getFriendProfile(messagePointer); break;
case FRDCommands::GetFriendRelationship: getFriendRelationship(messagePointer); break;
case FRDCommands::GetMyComment: getMyComment(messagePointer); break;
case FRDCommands::GetMyFriendKey: getMyFriendKey(messagePointer); break;
case FRDCommands::GetMyMii: getMyMii(messagePointer); break;
Expand Down Expand Up @@ -268,4 +270,12 @@ void FRDService::updateMii(u32 messagePointer) {

mem.write32(messagePointer, IPC::responseHeader(0x40C, 1, 0));
mem.write32(messagePointer + 4, Result::Success);
}

void FRDService::getFriendRelationship(u32 messagePointer) {
log("FRD::GetFriendRelationship (stubbed)\n");

// TODO: What does this return?
mem.write32(messagePointer, IPC::responseHeader(0x16, 1, 0));
mem.write32(messagePointer + 4, Result::Success);
}
Loading