Skip to content

Commit 7abdfcd

Browse files
committed
fix
1 parent 4a06a4f commit 7abdfcd

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

  • apple/runtime/macos/rust/src

apple/runtime/macos/rust/src/lib.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1+
use std::path::PathBuf;
2+
13
fn main(wrapp_path: String, persistent_path: String) -> anyhow::Result<()> {
24
let builder = webrogue_wasmtime::WrappVFSBuilder::from_file_path(wrapp_path)?;
5+
let persistent_path = PathBuf::from(persistent_path);
36
#[cfg(feature = "runtime")]
47
return webrogue_wasmtime::run_jit_builder(
5-
webrogue_gfx_winit::SimpleWinitBuilder::default()?,
8+
webrogue_gfx_winit::SimpleWinitBuilder::with_default_event_loop()?,
69
builder,
7-
&persistent_path.into(),
10+
&persistent_path,
811
);
912
#[cfg(feature = "runner")]
1013
return webrogue_wasmtime::run_aot_builder(
11-
webrogue_gfx_winit::SimpleWinitBuilder::default()?,
14+
webrogue_gfx_winit::SimpleWinitBuilder::with_default_event_loop()?,
1215
builder,
13-
&persistent_path.into(),
16+
&persistent_path,
1417
);
1518
#[cfg(not(any(feature = "runtime", feature = "runner")))]
1619
{

0 commit comments

Comments
 (0)