Skip to content

Commit

Permalink
Merge pull request #65 from MikeIsAStar/allow-users-to-open-rooms-wit…
Browse files Browse the repository at this point in the history
…hout-having-any-friends-added

[MKW] Allow users to open rooms without having any friends added
  • Loading branch information
mkwcat authored Apr 22, 2024
2 parents 2e38a2b + b7b7b44 commit 7c3b8c0
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion payload/wwfcFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,21 @@ WWFC_DEFINE_PATCH = {
),
};

// Allow users to open rooms without having any friends added
WWFC_DEFINE_PATCH = {
Patch::CallWithCTR( //
WWFC_PATCH_LEVEL_FEATURE, //
RMCXD_PORT(0x8064D358, 0x8061A044, 0x8064C9C4, 0x8063B670), //
// clang-format off
[](mkw::UI::WifiFriendMenuPage* /* wifiFriendMenuPage */, void* /* pushButton */) -> int {
constexpr int friendsAdded = 1;

return friendsAdded;
}
// clang-format on
),
};

// Fix a bug that leads to the rejection of one's item request without
// justification
WWFC_DEFINE_PATCH = {
Expand Down Expand Up @@ -146,7 +161,7 @@ WWFC_DEFINE_PATCH = {
),
};

// Allow for the "Open Host" feature to be enabled via the press of a button
// Allow the "Open Host" feature to be enabled via the press of a button
WWFC_DEFINE_PATCH = {
Patch::WritePointer(
WWFC_PATCH_LEVEL_FEATURE,
Expand Down

0 comments on commit 7c3b8c0

Please sign in to comment.