mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 19:55:50 +00:00
pull in project-slippi/Ishiiruka/commit/79e6f6603c9396d00865633827be775aca044235
This commit is contained in:
parent
83f778800f
commit
00a48b7233
1 changed files with 16 additions and 0 deletions
|
@ -2597,6 +2597,22 @@ void CEXISlippi::prepareOnlineMatchState()
|
|||
m_read_queue.insert(m_read_queue.end(), connectCode.begin(), connectCode.end());
|
||||
}
|
||||
|
||||
#ifdef LOCAL_TESTING
|
||||
std::string defaultUids[] = {"l6dqv4dp38a5ho6z1sue2wx2adlp", "jpvducykgbawuehrjlfbu2qud1nv",
|
||||
"k0336d0tg3mgcdtaukpkf9jtf2k8", "v8tpb6uj9xil6e33od6mlot4fvdt"};
|
||||
#endif
|
||||
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
std::string uid = i < playerInfo.size() ? playerInfo[i].uid :
|
||||
""; // UIDs are 28 characters + 1 null terminator
|
||||
#ifdef LOCAL_TESTING
|
||||
uid = defaultUids[i];
|
||||
#endif
|
||||
uid.resize(29); // ensure a null terminator at the end
|
||||
m_read_queue.insert(m_read_queue.end(), uid.begin(), uid.end());
|
||||
}
|
||||
|
||||
// Add error message if there is one
|
||||
auto errorStr = !forcedError.empty() ? forcedError : matchmaking->GetErrorMessage();
|
||||
errorStr = ConvertStringForGame(errorStr, 120);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue