Remove double set

This commit is contained in:
hodasemi 2024-08-25 11:59:40 +02:00
parent 4226d72b1d
commit 634115aa3d

View file

@ -509,28 +509,6 @@ impl Game {
}
fn apply_data_dir(settings: &mut CoreSettings, data_dir: &str) {
// gui
settings.gui.font.set_prefix(data_dir);
// engine
settings.engine.tile_directory.set_prefix(data_dir);
settings.engine.entity_directory.set_prefix(data_dir);
settings.engine.gltf_directory.set_prefix(data_dir);
settings
.engine
.xbox_controller_directory
.set_prefix(data_dir);
settings
.engine
.steam_controller_directory
.set_prefix(data_dir);
settings
.engine
.ps4_controller_directory
.set_prefix(data_dir);
settings.engine.light_key.set_prefix(data_dir);
settings.engine.dark_key.set_prefix(data_dir);
// game
settings.game.sounds_directory.set_prefix(data_dir);
settings.game.music_directory.set_prefix(data_dir);