Skip to content

Instantly share code, notes, and snippets.

@beejjorgensen
Created June 22, 2026 19:02
Show Gist options
  • Select an option

  • Save beejjorgensen/b66667434c6107628892b1ce8aef40da to your computer and use it in GitHub Desktop.

Select an option

Save beejjorgensen/b66667434c6107628892b1ce8aef40da to your computer and use it in GitHub Desktop.
Updated patch file for AUR umoria
diff -Naur umoria-5.7.15/src/config.cpp umoria-5.7.15-aur/src/config.cpp
--- umoria-5.7.15/src/config.cpp 2021-06-02 07:04:31.000000000 -0700
+++ umoria-5.7.15-aur/src/config.cpp 2026-06-22 11:45:46.386710007 -0700
@@ -10,18 +10,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 = "/usr/share/umoria/data/splash.txt";
+ const std::string welcome_screen = "/usr/share/umoria/data/welcome.txt";
+ const std::string license = "/usr/share/licenses/umoria/LICENSE";
+ const std::string versions_history = "/usr/share/umoria/data/versions.txt";
+ const std::string help = "/usr/share/umoria/data/help.txt";
+ const std::string help_wizard = "/usr/share/umoria/data/help_wizard.txt";
+ const std::string help_roguelike = "/usr/share/umoria/data/rl_help.txt";
+ const std::string help_roguelike_wizard = "/usr/share/umoria/data/rl_help_wizard.txt";
+ const std::string death_tomb = "/usr/share/umoria/data/death_tomb.txt";
+ const std::string death_royal = "/usr/share/umoria/data/death_royal.txt";
+ const std::string scores = "/usr/share/umoria/data/scores.dat";
+ std::string save_game = "moria-save";
} // namespace files
// Game options as set on startup and with `=` set options command -CJS-
diff -Naur umoria-5.7.15/src/game.h umoria-5.7.15-aur/src/game.h
--- umoria-5.7.15/src/game.h 2021-06-02 07:04:31.000000000 -0700
+++ umoria-5.7.15-aur/src/game.h 2026-06-22 11:39:46.934767224 -0700
@@ -32,7 +32,7 @@
Wrong,
};
-typedef struct {
+typedef struct Game_t {
uint32_t magic_seed = 0; // Seed for initializing magic items (Potions, Wands, Staves, Scrolls, etc.)
uint32_t town_seed = 0; // Seed for town generation
diff -Naur umoria-5.7.15/src/game_save.cpp umoria-5.7.15-aur/src/game_save.cpp
--- umoria-5.7.15/src/game_save.cpp 2021-06-02 07:04:31.000000000 -0700
+++ umoria-5.7.15-aur/src/game_save.cpp 2026-06-22 11:42:42.149452076 -0700
@@ -807,7 +807,7 @@
count = rdByte();
char_tmp = rdByte();
for (int i = count; i > 0; i--) {
- if (tile >= &dg.floor[MAX_HEIGHT][0]) {
+ if (tile > &dg.floor[MAX_HEIGHT - 1][MAX_WIDTH - 1]) {
goto error;
}
tile->feature_id = (uint8_t)(char_tmp & 0xF);
diff -Naur umoria-5.7.15/src/player.h umoria-5.7.15-aur/src/player.h
--- umoria-5.7.15/src/player.h 2021-06-02 07:04:31.000000000 -0700
+++ umoria-5.7.15-aur/src/player.h 2026-06-22 11:40:09.126458371 -0700
@@ -45,7 +45,7 @@
typedef const char *ClassRankTitle_t;
// Player_t contains everything to be known about our player character
-typedef struct {
+typedef struct Player_t {
struct {
char name[PLAYER_NAME_SIZE]; // Name of character
bool gender; // Gender of character (Female = 0, Male = 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment