Don't double set

This commit is contained in:
hodasemi 2024-08-24 17:51:23 +02:00
parent b1dd54614a
commit 2c00285217

View file

@ -102,22 +102,6 @@ pub struct Engine {
impl Engine { impl Engine {
pub fn new(#[allow(unused)] mut create_info: EngineCreateInfo<'_>) -> Result<Arc<Self>> { pub fn new(#[allow(unused)] mut create_info: EngineCreateInfo<'_>) -> Result<Arc<Self>> {
create_info
.gui_info
.menu_button
.set_prefix(&create_info.resource_base_path);
create_info
.gui_info
.menu_button_selected
.set_prefix(&create_info.resource_base_path);
create_info
.gui_info
.click_sound
.set_prefix(&create_info.resource_base_path);
create_info
.gui_info
.hover_sound
.set_prefix(&create_info.resource_base_path);
if let Font::Path(path) = &mut create_info.gui_info.font { if let Font::Path(path) = &mut create_info.gui_info.font {
path.set_prefix(&create_info.resource_base_path); path.set_prefix(&create_info.resource_base_path);
} }