JesseTG / ruffle_libretro

Experimental libretro core for Ruffle, the Flash emulator.
7 stars 0 forks source link

Multiple Build & Run Issues #1

Open hansenlabs opened 1 month ago

hansenlabs commented 1 month ago

First thanks for starting a ruffle-core. Issues may be related to rust-libretro but you are a dev there too.

OS: U20.04 retroarch; 9.15 (from OS) / 9.19 (compiled from source) - both same behavior

  1. Build Issue: error: failed to run custom build command for "rust-libretro-sys v0.3.2" libretro.h:27:10: fatal error: 'stddef.h' file not found --> solved by sudo apt install clang Option to improve by checking deps prior compile.

  2. Registering Core works, loading core panics in /src/core/core.rs at line 93: if let Err(e) = ctx.enable_vfs_interface(3) { panic!("RETRO_ENVIRONMENT_GET_VFS_INTERFACE failed: {e}");

Retroarch crashes with: thread '' panicked at src/core/core.rs:93:17: RETRO_ENVIRONMENT_GET_VFS_INTERFACE failed: vfs_interface_info.interface is a null pointer

3. changing panic to warning in code, Core loads, but association with file extension swf does not work. It always asks me to search for suitable core for file. Tried with rust-libretro/rust-libretro-example-core by adding valid_extensions: CString::new("swf").unwrap() to SystemInfo also had no effect, not even tried to load file.

4. Minimal Readme including HostOS, Retroarch Version and info about working Flash example (e.g. allyourbase.swf) would be really great.

JesseTG commented 1 month ago

Thanks for reporting this. ruffle_libretro was a proof of concept and isn't something I'm actively working on right now; that said, I'd like to return to it at some point when melonDS DS slows down. If I do, I will address this issue.

metallic77 commented 3 weeks ago

This core would be really cool indeed if it worked.

JesseTG commented 3 weeks ago

One of these days.

metallic77 commented 2 weeks ago

Some really cool games in flash like binding of isaac, dangerous dungeons, insidia, portal, moonkeeper etc. Really worth it with some retroarch input mapping to keys.