While implementing a new ENIGMA setting I also added the ability to set platform specific defaults to the compiler settings frame. It works as Default-TargetOS where TargetOS is the name of the operating system returned by TargetHandler.GetOS(), an example follows for the Make Directory setting.
If the platform specific default is not found, the generic default is used.
-Build Options:
Layout: Grid
Columns: 2
-make-directory:
Type: Textfield
Label: Make Directory
Default-Windows: "%PROGRAMDATA%/ENIGMA/"
Default-Linux: "%HOME%/ENIGMA/"
Default-MacOSX: "./ENIGMA"
Default: "./ENIGMA"
-inherit-objects:
Type: Checkbox
Label: Object Inheritance
Default: true
I implemented this to the plugin in the following commit.
https://github.com/enigma-dev/lgmplugin/commit/1f6071e1cf91c70a5c31a115cea60a397ef369f5The settings were implemented to ENIGMA's repo in the following pull request.
https://github.com/enigma-dev/enigma-dev/pull/628When this is merged to the repository I will immediately upload a new version of the Plugin and LateralGM as well as the Portable ZIP that you will need to download the next time you update from the repository.