mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 10:37:41 -04:00
Remove all uses of GuidToString.
This commit is contained in:
@ -103,8 +103,8 @@ std::wstring pyGameCli::GameTypeID() const
|
||||
{
|
||||
if (gameClient)
|
||||
{
|
||||
wchar_t guidStr[256];
|
||||
GuidToString(gameClient->GetGameTypeId(), guidStr, arrsize(guidStr));
|
||||
wchar_t guidStr[64];
|
||||
wcsncpy(guidStr, plUUID(gameClient->GetGameTypeId()).AsString().ToWchar(), 64);
|
||||
return guidStr;
|
||||
}
|
||||
return L"";
|
||||
@ -182,4 +182,4 @@ PyObject* pyGameCli::UpcastToVarSyncGame()
|
||||
if (gameClient && (gameClient->GetGameTypeId() == kGameTypeId_VarSync))
|
||||
return pyVarSyncGame::New(gameClient);
|
||||
PYTHON_RETURN_NONE;
|
||||
}
|
||||
}
|
||||
|
@ -108,8 +108,8 @@ std::wstring pyGameMgrInviteReceivedMsg::GameTypeID() const
|
||||
if (message)
|
||||
{
|
||||
const Srv2Cli_GameMgr_InviteReceived* gmMsg = (const Srv2Cli_GameMgr_InviteReceived*)message->netMsg;
|
||||
wchar_t buffer[256];
|
||||
GuidToString(gmMsg->gameTypeId, buffer, arrsize(buffer));
|
||||
wchar_t buffer[64];
|
||||
wcsncpy(buffer, plUUID(gmMsg->gameTypeId).AsString().ToWchar(), 64);
|
||||
return buffer;
|
||||
}
|
||||
return L"";
|
||||
@ -149,8 +149,8 @@ std::wstring pyGameMgrInviteRevokedMsg::GameTypeID() const
|
||||
if (message)
|
||||
{
|
||||
const Srv2Cli_GameMgr_InviteRevoked* gmMsg = (const Srv2Cli_GameMgr_InviteRevoked*)message->netMsg;
|
||||
wchar_t buffer[256];
|
||||
GuidToString(gmMsg->gameTypeId, buffer, arrsize(buffer));
|
||||
wchar_t buffer[64];
|
||||
wcsncpy(buffer, plUUID(gmMsg->gameTypeId).AsString().ToWchar(), 64);
|
||||
return buffer;
|
||||
}
|
||||
return L"";
|
||||
@ -164,4 +164,4 @@ unsigned long pyGameMgrInviteRevokedMsg::NewGameID() const
|
||||
return gmMsg->newGameId;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user