mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-27 14:36:30 +01:00
server list colors, unicode parse bug
fixes bug in parsing names from the server file, double s letters wouldnt parse correctly attempted to add color parsing to server list text but it appears that buttons dont accept color? i left the code in for anyone who is interested to take a look
This commit is contained in:
1 parent
606d09a4e8
commit
2eb55af875
3 files changed
+32
-8
No files matched your search
@@ -13,6 +13,9 @@
|
||||
#include <iostream>
|
||||
#endif
|
||||
|
||||
#include <codecvt>
|
||||
#include <string>
|
||||
|
||||
CPlatformNetworkManagerStub *g_pPlatformNetworkManager;
|
||||
|
||||
|
||||
@@ -910,14 +913,13 @@ void CPlatformNetworkManagerStub::SearchForGames()
|
||||
if (std::fread(&nameLen, sizeof(uint16_t), 1, file) != 1) break;
|
||||
if (nameLen > 256) break;
|
||||
|
||||
char nameBuf[257] = {};
|
||||
if (nameLen > 0)
|
||||
{
|
||||
if (std::fread(nameBuf, 1, nameLen, file) != nameLen) break;
|
||||
wstring wName = L"";
|
||||
for (int l = 0; l < nameLen; l++) {
|
||||
uint16_t _char = 0;
|
||||
if (std::fread(&_char, 1, 1, file) != 1) break;
|
||||
wName += _char;
|
||||
}
|
||||
|
||||
wstring wName = convStringToWstring(nameBuf);
|
||||
|
||||
FriendSessionInfo* info = new FriendSessionInfo();
|
||||
size_t nLen = wName.length();
|
||||
info->displayLabel = new wchar_t[nLen + 1];
|
||||
|
||||
Reference in new issue
Block a user