move default files to system/players
This commit is contained in:
+3
-1
@@ -16,4 +16,6 @@ install_manifest.txt
|
|||||||
# Files modified by the user and/or server that don't have defaults
|
# Files modified by the user and/or server that don't have defaults
|
||||||
system/config.json
|
system/config.json
|
||||||
system/licenses.nsi
|
system/licenses.nsi
|
||||||
system/players/*
|
system/players/player_*
|
||||||
|
system/players/account_*
|
||||||
|
system/players/bank_*
|
||||||
|
|||||||
+2
-2
@@ -350,7 +350,7 @@ string ClientGameData::player_data_filename() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
string ClientGameData::player_template_filename(uint8_t char_class) {
|
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(
|
void ClientGameData::create_player(
|
||||||
@@ -388,7 +388,7 @@ void ClientGameData::load_account_data() {
|
|||||||
log(INFO, "[BB/Account] No account data for %s; using default",
|
log(INFO, "[BB/Account] No account data for %s; using default",
|
||||||
this->bb_username.c_str());
|
this->bb_username.c_str());
|
||||||
data.reset(new SavedAccountDataBB(
|
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) {
|
if (data->signature != ACCOUNT_FILE_SIGNATURE) {
|
||||||
throw runtime_error("default account data header is incorrect");
|
throw runtime_error("default account data header is incorrect");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user