sarah-walker-pcem / pcem

PCem
http://pcem-emulator.co.uk
GNU General Public License v2.0
1.47k stars 204 forks source link

fix cmake for Apple Silicon machines; render related bug fixes on macOS (#185) #186

Closed TomoshibiAkira closed 1 year ago

TomoshibiAkira commented 1 year ago

This was tested on a Macbook Air with M2 and macOS 12.6.

Environment:

The build command:

cmake -G Xcode -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="arm64" .
xcodebuild -configuration Release
tinue commented 1 year ago

May I respectfully ask where you placed the rom files, and how you made your compiled "pcem" find them? No matter what I try, I always get the error about missing rom files. I built on a Mac mini (M2), with MacOS 13.2.1 and Xcode 14.2. I tried placing the "roms" directory into the same path as the binary, I tried using ~/.pcem/roms, I tried with a "pcem.conf" file in either the binary directory or in ~/.pcem, pointing to the roms directory, but no luck.

TomoshibiAkira commented 1 year ago

May I respectfully ask where you placed the rom files, and how you made your compiled "pcem" find them? No matter what I try, I always get the error about missing rom files. I built on a Mac mini (M2), with MacOS 13.2.1 and Xcode 14.2. I tried placing the "roms" directory into the same path as the binary, I tried using ~/.pcem/roms, I tried with a "pcem.conf" file in either the binary directory or in ~/.pcem, pointing to the roms directory, but no luck.

It's at ~/Library/Application Support/PCem/, defined in plugin-api/paths.c at L223. I personally perfer '~/.pcem' tho :)

tinue commented 1 year ago

;-) It kinda belongs there, though. Presumably all that is required there is the config file, which can redirect the rom path to ~/.pcem. I'll try later.