Skip to content

Commit 4bb74d2

Browse files
committed
- fix hotreloading for plugins
1 parent 4f71f45 commit 4bb74d2

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/client.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -524,12 +524,7 @@ impl<D, A> Client<D, A> where D: gfx::Device, A: os::App, D::RenderPipeline: gfx
524524
/// The lib can implement the `hotline_plugin!` and `Plugin` trait, but that is not required
525525
/// You can also just load libs and use `lib.get_symbol` to find custom callable code for other plugins.
526526
pub fn add_plugin_lib(&mut self, name: &str, path: &str) {
527-
let abs_path = if path == "/plugins" {
528-
super::get_data_path("../..")
529-
}
530-
else {
531-
String::from(path)
532-
};
527+
let abs_path = super::get_data_path("../..");
533528

534529
let lib_path = PathBuf::from(abs_path.to_string())
535530
.join("target")

0 commit comments

Comments
 (0)