termux-packages/packages/moria/config.cpp.patch
2021-11-27 13:00:40 +01:00

34 lines
2.1 KiB
Diff

--- ../config.cpp.orig 2019-04-28 08:39:02.561466895 +0200
+++ ./src/config.cpp 2019-04-28 08:47:23.468112922 +0200
@@ -12,18 +12,18 @@
// Data files used by Umoria
// NOTE: use relative paths to the executable binary.
namespace files {
- const std::string splash_screen = "data/splash.txt";
- const std::string welcome_screen = "data/welcome.txt";
- const std::string license = "LICENSE";
- const std::string versions_history = "data/versions.txt";
- const std::string help = "data/help.txt";
- const std::string help_wizard = "data/help_wizard.txt";
- const std::string help_roguelike = "data/rl_help.txt";
- const std::string help_roguelike_wizard = "data/rl_help_wizard.txt";
- const std::string death_tomb = "data/death_tomb.txt";
- const std::string death_royal = "data/death_royal.txt";
- const std::string scores = "scores.dat";
- std::string save_game = "game.sav";
+ const std::string splash_screen = "@TERMUX_PREFIX@/lib/games/moria/splash.txt";
+ const std::string welcome_screen = "@TERMUX_PREFIX@/lib/games/moria/welcome.txt";
+ const std::string license = "@TERMUX_PREFIX@/share/doc/moria/LICENSE";
+ const std::string versions_history = "@TERMUX_PREFIX@/lib/games/moria/versions.txt";
+ const std::string help = "@TERMUX_PREFIX@/lib/games/moria/help.txt";
+ const std::string help_wizard = "@TERMUX_PREFIX@/lib/games/moria/help_wizard.txt";
+ const std::string help_roguelike = "@TERMUX_PREFIX@/lib/games/moria/rl_help.txt";
+ const std::string help_roguelike_wizard = "@TERMUX_PREFIX@/lib/games/moria/rl_help_wizard.txt";
+ const std::string death_tomb = "@TERMUX_PREFIX@/lib/games/moria/death_tomb.txt";
+ const std::string death_royal = "@TERMUX_PREFIX@/lib/games/moria/death_royal.txt";
+ const std::string scores = "@TERMUX_PREFIX@/lib/games/moria/scores.dat";
+ std::string save_game = "@TERMUX_PREFIX@/lib/games/game.sav";
}
// Game options as set on startup and with `=` set options command -CJS-