diff options
author | Johannes Maier <johannes.maier@mailbox.org> | 2022-06-18 13:54:28 +0200 |
---|---|---|
committer | Johannes Maier <johannes.maier@mailbox.org> | 2022-06-18 14:22:24 +0200 |
commit | bfc755d4d0e14a159b77b82246ffe651fa52955b (patch) | |
tree | 148d937543d5f07c2369366136a5d11fdfc97271 /pkgs/games/umoria | |
parent | 7cb6a08be10d89396449c9e90418edd0a1ff151b (diff) |
umoria: fix savegame handling
It was impossible to continue a saved character before, as the `cleanup` function would remove the whole temporary RUNDIR, including the actual save file. umoria allows passing a custom save file location, which now points to the already-used data directory ~/.umoria. Fixes #178136
Diffstat (limited to 'pkgs/games/umoria')
-rw-r--r-- | pkgs/games/umoria/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/games/umoria/default.nix b/pkgs/games/umoria/default.nix index 1114d47b7be56..03cdf4eab9d05 100644 --- a/pkgs/games/umoria/default.nix +++ b/pkgs/games/umoria/default.nix @@ -8,7 +8,7 @@ }: let - savesDir = "~/.umoria/"; + savesDir = "~/.umoria"; in gcc9Stdenv.mkDerivation rec { pname = "umoria"; @@ -55,7 +55,7 @@ gcc9Stdenv.mkDerivation rec { [[ ! -f ${savesDir}/scores.dat ]] && touch ${savesDir}/scores.dat ln -s ${savesDir}/scores.dat scores.dat - $out/.umoria-unwrapped + $out/.umoria-unwrapped ${savesDir}/game.sav EOF chmod +x $out/bin/umoria |