WarsmashModEngine
WarsmashModEngine copied to clipboard
More ini flexibilty
A few things I noticed, which seemed unhandy.
- I had to repeat the path to WC3 a lot
- variables or at least some base variable that can be defined and used in paths (
$0maybe)
- variables or at least some base variable that can be defined and used in paths (
- ~~ini always loaded from the working directory~~
- unhandy if warsmash gets installed to a read-only location
- ~~could be first command line argument or probably via
--ini-path=(would allow to directly load maps via the first argument or something like that)~~-ini - trying to load it from standard directories like
$HOME/.config/warsmash/warsmash.ini(XDG basedir is a lot more comlex than that simplification) … maybe something like https://codeberg.org/dirs/directories-jvm
ini in a ~/.config directory + map files via cli would theoretically allow on Linux to associate warsmash with WC3 maps via XDG Mime types (associates a desktop file with a mime type or file extension) and XDG Desktop files (explains how to run program). example here