-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Purpose of this change: * To make Oricutron runnable without cd'ing to its directory first * To support relative paths with the -t option * On macOS, to help command line users by not requiring a bundled app, allow "./oricutron" in the source directory much like under Linux. * To make the macOS version runnable from the source directory like you might expect if coming from Linux, e.g. by "make && ./oricutron". Code changes: * Factor out FILEPREFIX from ROMPREFIX and IMAGEPREFIX constants * Apply FILEPREFIX for all filenames in oricutron.cfg which was done previously only for the keymap path * Let function get_fileprefix() replace the FILEPREFIX constant, and use run-time concatenation instead of compile-time * For Linux let get_fileprefix() return program binary's directory * For macOS, let get_fileprefix() return parent of .app bundle if the program is bundled, otherwise do as in Linux.
- Loading branch information
1 parent
bf4f678
commit 0df3c17
Showing
3 changed files
with
165 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters