move default files to system/players

This commit is contained in:
Martin Michelsen
2022-05-12 11:49:34 -07:00
parent 307eef88d0
commit 44989c08fe
16 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -350,7 +350,7 @@ string ClientGameData::player_data_filename() const {
}
string ClientGameData::player_template_filename(uint8_t char_class) {
return string_printf("system/blueburst/player_class_%hhu.nsc", char_class);
return string_printf("system/players/default_player_%hhu.nsc", char_class);
}
void ClientGameData::create_player(
@@ -388,7 +388,7 @@ void ClientGameData::load_account_data() {
log(INFO, "[BB/Account] No account data for %s; using default",
this->bb_username.c_str());
data.reset(new SavedAccountDataBB(
load_object_file<SavedAccountDataBB>("system/blueburst/default.nsa")));
load_object_file<SavedAccountDataBB>("system/players/default.nsa")));
if (data->signature != ACCOUNT_FILE_SIGNATURE) {
throw runtime_error("default account data header is incorrect");
}