[saco] Implement CConfig ctor

This commit is contained in:
RD42 2024-02-19 21:31:01 +08:00
parent f48407e96f
commit 2bade13e0c
2 changed files with 21 additions and 6 deletions

View File

@ -3,7 +3,18 @@
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()
@ -11,7 +22,7 @@ void CConfig::sub_10066270()
// TODO: CConfig::sub_10066270 10066270
}
void CConfig::sub_100661E0()
BOOL CConfig::ReadFile()
{
// TODO: CConfig::sub_100661E0 100661E0
}

View File

@ -1,6 +1,8 @@
#pragma once
#define MAX_CONFIG_ENTRIES 512
typedef struct _UNNAMED_STRUCT_1 {
char _gap0[61];
} UNNAMED_STRUCT_1;
@ -8,16 +10,18 @@ typedef struct _UNNAMED_STRUCT_1 {
class CConfig
{
private:
UNNAMED_STRUCT_1 field_0[512];
int field_7A00[512];
char field_8200[261];
UNNAMED_STRUCT_1 field_0[MAX_CONFIG_ENTRIES];
int field_7A00[MAX_CONFIG_ENTRIES];
char field_8200[MAX_PATH+1];
int field_8305;
public:
CConfig(char* a2);
void sub_10066270();
void sub_100661E0();
BOOL ReadFile();
void sub_10066180();
void sub_100660E0();
void sub_10065FD0();