Skip to content

Commit

Permalink
Add isBot flag from mm server.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfi1 committed Oct 31, 2024
1 parent 1cc699c commit 0371a01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/Core/Core/Slippi/SlippiMatchmaking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ void SlippiMatchmaking::handleMatchmaking()
player_info.display_name = el.value("displayName", "");
player_info.connect_code = el.value("connectCode", "");
player_info.port = el.value("port", 0);
player_info.is_bot = el.value("isBot", false);
if (el["chatMessages"].is_array())
{
player_info.chat_messages = el.value("chatMessages", m_user->GetDefaultChatMessages());
Expand Down
2 changes: 2 additions & 0 deletions Source/Core/Core/Slippi/SlippiUser.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class SlippiUser
int port;

std::vector<std::string> chat_messages;

bool is_bot = false;
};

SlippiUser(uintptr_t rs_exi_device_ptr);
Expand Down

0 comments on commit 0371a01

Please sign in to comment.