Tried to clean up file management configuration a bit, but there's still a split between DOS and *nix that needs to be resolved.
Thoughts on how release files might ideally be handled for modern Windows/Mac/Linux ports:
hours file should probably just go away, as it's probably a multi-user support feature for sysadmins
Probably want to support portable installs on all OSes
In this case, the user would unpack all files into a folder tree that they control (write access etc.), and the game would just look for them in the binary's directory.
Might also be nice to support "proper" installs as well though:
Common:
Save and scores files should probably go in a user folder, except maybe in a portable install?
Support user folder override of MORIA.CNF config file?
Windows:
Default MORIA.CNF, .hlp/news/license/docs, etc. could probably go in the install directory, next to the game binary.
Provide a proper installer (NSIS/InnoSetup/WiX)?
Mac:
Binary goes in an app bundle?
Default MORIA.CNF, .hlp/news files, etc. could maybe go the app bundle too?
License and docs are TBD/TODO (how to expose those to the user?).
Linux:
Binary would probably install to /usr/local/bin or similar?
Default MORIA.CNF, .hlp/news/license/docs, etc. would probably go in /usr/share/hzmoria and/or /usr/local/etc?
This sounds too complicated for an initial cut. Maybe just go with a portable install at first, and refactor to properly installable solutions later? Expecting the user to unpack to and run from a user folder containing all files is probably reasonable, but needs to be tested on all 3 OSes (especially Mac) for viability.
Tried to clean up file management configuration a bit, but there's still a split between DOS and *nix that needs to be resolved.
Thoughts on how release files might ideally be handled for modern Windows/Mac/Linux ports:
hours
file should probably just go away, as it's probably a multi-user support feature for sysadminsscores
files should probably go in a user folder, except maybe in a portable install?MORIA.CNF
config file?MORIA.CNF
,.hlp
/news
/license/docs, etc. could probably go in the install directory, next to the game binary.MORIA.CNF
,.hlp
/news
files, etc. could maybe go the app bundle too?/usr/local/bin
or similar?MORIA.CNF
,.hlp
/news
/license/docs, etc. would probably go in/usr/share/hzmoria
and/or/usr/local/etc
?This sounds too complicated for an initial cut. Maybe just go with a portable install at first, and refactor to properly installable solutions later? Expecting the user to unpack to and run from a user folder containing all files is probably reasonable, but needs to be tested on all 3 OSes (especially Mac) for viability.