diff options
Diffstat (limited to 'games/galaxymage/files/patch-src_Resources.py')
-rw-r--r-- | games/galaxymage/files/patch-src_Resources.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/games/galaxymage/files/patch-src_Resources.py b/games/galaxymage/files/patch-src_Resources.py new file mode 100644 index 000000000000..89c5b5f6cf2e --- /dev/null +++ b/games/galaxymage/files/patch-src_Resources.py @@ -0,0 +1,21 @@ +--- src/Resources.py Mon Jan 30 20:17:48 2006 ++++ src/Resources.py Mon Jan 30 20:18:40 2006 +@@ -37,15 +37,15 @@ + sep = r'\\' + base = re.sub(r'/', sep, base) + name = re.sub(r'/', sep, name) +- result = os.path.join("data", campaign, base, name) ++ result = os.path.join("%%DATADIR%%", campaign, base, name) + if os.path.exists(result): + logger.debug('found ' + result) + return result +- result = os.path.join("data", "extra", base, name) ++ result = os.path.join("%%DATADIR%%", "extra", base, name) + if os.path.exists(result): + logger.debug('found ' + result) + return result +- result = os.path.join("data", "core", base, name) ++ result = os.path.join("%%DATADIR%%", "core", base, name) + if os.path.exists(result): + logger.debug('found ' + result) + return result |