libsm64 / libsm64-unity

Unity engine demo client of libsm64
59 stars 6 forks source link

iOS Support? #4

Open guyfriday opened 2 years ago

guyfriday commented 2 years ago

Is this supposed to work on iOS devices or M1 Macs? I'm seeing exceptions where it isn't loading the lib at runtime.

Android seems to work in-editor but on device, it appears to have the same issue as the iOS/M1 Macs.

jaburns commented 2 years ago

I haven't spent any effort to make it work on any platform besides desktop. I'm happy to accept pull requests that make this possible, but I'm not personally interested in that work myself.

guyfriday commented 2 years ago

No worries! I've found that the build script will output a .bundle file for macOS with minimal effort.

For iOS, putting the raw C code into a Plugins/iOS folder was enough, though Interop needed one additional attribute for one of the delegate methods for marshalling.