jfdelnero / HxCFloppyEmulator

HxC Floppy Drive Emulator toolkit
https://hxc2001.com/floppy_drive_emulator/
87 stars 13 forks source link

CAPSLib loading & macOS improvements #12

Closed renaudguerin closed 11 months ago

renaudguerin commented 11 months ago

Salut Jean-François,

In this PR I tried to improve the reliability of autodetecting / loading the CAPS library (especially on macOS), along with a few other minor improvements.

  1. Added support for having several values (comma-separated) in SPSCAPS_LIB_NAME. It will try each one in order (I've added more detailed logging too), and I have changed the default values of the variable in Linux/macOS to take advantage of this. This is similar to what other tools are doing with CAPSlib, and it should better autodetect the different builds that are floating around. On macOS, it means users should copy CAPSImage.framework or CAPSImg.framework to /Library/Frameworks (admin access needed) and HxC will use either of them. It should address issues reported here or here.
  2. Slightly improved the Mac bundle creation script. Adding CFBundleIdentifier to the plist should also fix Spotlight not finding the app.
  3. Some other minor tweaks to .gitignore (it didn't cover all of fltk when building on Mac) and README.

Just built & tested on macOS Ventura 13.5. I didn't test the Windows logging addition, hopefully it works !

jfdelnero commented 11 months ago

Thanks. I will send you the build to test it.