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 Nov 1, 2024
1 parent 5980277 commit 1ceafe2
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 @@ -511,6 +511,7 @@ void SlippiMatchmaking::handleMatchmaking()
playerInfo.displayName = el.value("displayName", "");
playerInfo.connectCode = el.value("connectCode", "");
playerInfo.port = el.value("port", 0);
playerInfo.isBot = el.value("isBot", false);

if (el["chatMessages"].is_array())
{
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> chatMessages;

bool isBot = false;
};

SlippiUser(uintptr_t rs_exi_device_ptr);
Expand Down

0 comments on commit 1ceafe2

Please sign in to comment.