mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-05 17:13:27 +08:00
[saco] Implement CConfig ctor
This commit is contained in:
parent
f48407e96f
commit
2bade13e0c
@ -3,7 +3,18 @@
|
|||||||
|
|
||||||
CConfig::CConfig(char* a2)
|
CConfig::CConfig(char* a2)
|
||||||
{
|
{
|
||||||
// TODO: CConfig::CConfig 100663E0
|
for(int i = 0; i != MAX_CONFIG_ENTRIES; i++) {
|
||||||
|
memset(&field_0[i], 0, sizeof(UNNAMED_STRUCT_1));
|
||||||
|
field_7A00[i] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
field_8305 = 0;
|
||||||
|
|
||||||
|
if(a2 && strlen(a2)) {
|
||||||
|
strcpy(field_8200, a2);
|
||||||
|
|
||||||
|
ReadFile();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CConfig::sub_10066270()
|
void CConfig::sub_10066270()
|
||||||
@ -11,7 +22,7 @@ void CConfig::sub_10066270()
|
|||||||
// TODO: CConfig::sub_10066270 10066270
|
// TODO: CConfig::sub_10066270 10066270
|
||||||
}
|
}
|
||||||
|
|
||||||
void CConfig::sub_100661E0()
|
BOOL CConfig::ReadFile()
|
||||||
{
|
{
|
||||||
// TODO: CConfig::sub_100661E0 100661E0
|
// TODO: CConfig::sub_100661E0 100661E0
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#define MAX_CONFIG_ENTRIES 512
|
||||||
|
|
||||||
typedef struct _UNNAMED_STRUCT_1 {
|
typedef struct _UNNAMED_STRUCT_1 {
|
||||||
char _gap0[61];
|
char _gap0[61];
|
||||||
} UNNAMED_STRUCT_1;
|
} UNNAMED_STRUCT_1;
|
||||||
@ -8,16 +10,18 @@ typedef struct _UNNAMED_STRUCT_1 {
|
|||||||
class CConfig
|
class CConfig
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
UNNAMED_STRUCT_1 field_0[512];
|
UNNAMED_STRUCT_1 field_0[MAX_CONFIG_ENTRIES];
|
||||||
int field_7A00[512];
|
int field_7A00[MAX_CONFIG_ENTRIES];
|
||||||
char field_8200[261];
|
char field_8200[MAX_PATH+1];
|
||||||
int field_8305;
|
int field_8305;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
CConfig(char* a2);
|
CConfig(char* a2);
|
||||||
void sub_10066270();
|
void sub_10066270();
|
||||||
void sub_100661E0();
|
|
||||||
|
BOOL ReadFile();
|
||||||
|
|
||||||
void sub_10066180();
|
void sub_10066180();
|
||||||
void sub_100660E0();
|
void sub_100660E0();
|
||||||
void sub_10065FD0();
|
void sub_10065FD0();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user