Skip to content

Commit db360a0

Browse files
committed
Revert temporary fix for enterprise crashing on rust project API
Solution was added in the core
1 parent 5123925 commit db360a0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

rust/src/project.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ impl Project {
4040
/// * `path` - Path to the project directory (.bnpr)
4141
/// * `name` - Name of the new project
4242
pub fn create<P: BnStrCompatible, S: BnStrCompatible>(path: P, name: S) -> Self {
43-
unsafe { BNInitPlugins(true) };
4443
let path_raw = path.into_bytes_with_nul();
4544
let name_raw = name.into_bytes_with_nul();
4645
let handle = unsafe {
@@ -56,7 +55,6 @@ impl Project {
5655
///
5756
/// * `path` - Path to the project directory (.bnpr) or project metadata file (.bnpm)
5857
pub fn open_project<P: BnStrCompatible>(path: P) -> Self {
59-
unsafe { BNInitPlugins(true) };
6058
let path_raw = path.into_bytes_with_nul();
6159
let handle = unsafe { BNOpenProject(path_raw.as_ref().as_ptr() as *const ffi::c_char) };
6260
unsafe { Self::from_raw(NonNull::new(handle).unwrap()) }

0 commit comments

Comments
 (0)