Closed SapphirusBeryl closed 1 year ago
Some TODOs that needs to be added:
Migration, moving things from old location to new location.
We need to add atleast one new internal variable tracking where to place:
We need similiar update for sidconfigfp ROM files, since these paths are given relative to .ocp.ini currently. They should be probably be given just relative to $HOME instead
Würfel animation files are currently searched within same folder as ocp.ini
This commit introduces basic XDG Base Directory Specification compliance, and a bug fix disallowing blank environmental variables.
OCP successfully loads and creates the ocp.ini configuration file in
$XDG_CONFIG_HOME/ocp/ocp.ini
, otherwise it falls back to$HOME/.ocp/ocp.ini
if the$XDG_CONFIG_HOME
environmental variable is missing.Sample output with
$XDG_CONFIG_HOME
globally defined:Sample output with
$XDG_CONFIG_HOME
unset:Sample output with
XDG_CONFIG_HOME
or$HOME
defined blank: