split team membership struct from base BB system file

This commit is contained in:
Martin Michelsen
2024-09-17 21:54:56 -07:00
parent 16a8f91822
commit b13e67d491
7 changed files with 89 additions and 82 deletions
+3 -4
View File
@@ -3798,13 +3798,12 @@ static void on_E7_BB(shared_ptr<Client> c, uint16_t, uint32_t, string& data) {
p->challenge_records = cmd.char_file.challenge_records;
p->battle_records = cmd.char_file.battle_records;
p->death_count = cmd.char_file.death_count;
*c->system_file() = cmd.system_file.base;
*c->system_file() = cmd.system_file;
}
static void on_E2_BB(shared_ptr<Client> c, uint16_t, uint32_t, string& data) {
auto& cmd = check_size_t<PSOBBFullSystemFile>(data);
auto sys = c->system_file();
*sys = cmd.base;
const auto& cmd = check_size_t<S_SyncSystemFile_BB_E2>(data);
*c->system_file() = cmd.system_file;
c->save_system_file();
S_SystemFileCreated_00E1_BB out_cmd = {1};