Merge pull request #289 from wheremyfoodat/qt

Stub FRD::GetFriendRelationship
This commit is contained in:
wheremyfoodat 2023-09-26 23:00:22 +03:00 committed by GitHub
commit 83b2cae135
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -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);

View file

@ -23,6 +23,7 @@ namespace FRDCommands {
GetFriendKeyList = 0x00110080,
GetFriendPresence = 0x00120042,
GetFriendProfile = 0x00150042,
GetFriendRelationship = 0x00160042,
GetFriendAttributeFlags = 0x00170042,
UpdateGameModeDescription = 0x001D0002,
@ -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;
@ -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);
}