[bot] Implement CPlayerPool::SetLocalPlayerName

This commit is contained in:
RD42 2024-01-05 23:34:53 +08:00
parent e59401263a
commit 62d42f2c5e
2 changed files with 7 additions and 4 deletions

View File

@ -12,6 +12,7 @@
#include <unistd.h>
#endif
#define MAX_PLAYER_NAME 24
#define MAX_SETTINGS_STRING 256
typedef struct _GAME_SETTINGS {

View File

@ -1,11 +1,13 @@
#pragma once
class CPlayerPool // size: 41035
{
private:
int field_0[1000];
//char _gapFA0[2];
//char field_FA2[25];
char _gapFA0[25027];
char _gapFA0[2];
CHAR m_szLocalPlayerName[MAX_PLAYER_NAME+1];
char gapFBB[25000];
int field_7163;
int field_7167[1000];
int field_8107;
@ -14,7 +16,7 @@ private:
public:
void SetLocalPlayerName(PCHAR szName) {}; // TODO: CPlayerPool::SetLocalPlayerName
void SetLocalPlayerName(PCHAR szName) { strcpy(m_szLocalPlayerName,szName); };
CPlayerPool();
};