diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-09 12:44:47 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-09 12:44:47 -0300 |
commit | 619e065679167f6476160fa7256a4bb06db04e04 (patch) | |
tree | b9f2cc1324a35c56f80d1429678f8396719a4802 | |
parent | bb33dd6ea1d638a4f24d4227e2abbefeda78b310 (diff) | |
download | renpy-619e065679167f6476160fa7256a4bb06db04e04.tar.gz renpy-619e065679167f6476160fa7256a4bb06db04e04.tar.bz2 renpy-619e065679167f6476160fa7256a4bb06db04e04.tar.xz renpy-619e065679167f6476160fa7256a4bb06db04e04.zip |
Move working directory to base instead of save or game
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | game/core.rpy | 6 |
2 files changed, 4 insertions, 3 deletions
@@ -25,6 +25,7 @@ game/gfx/assets/* *.crt *.json extra/* +manaplus/ # DEV USE ONLY *.dev.* diff --git a/game/core.rpy b/game/core.rpy index f8e5b2e..762c0a0 100644 --- a/game/core.rpy +++ b/game/core.rpy @@ -105,12 +105,12 @@ init -3 python: # File Managment Functions def get_path(path): - if True or renpy.android: + # Not all systems can record on the game folder + if renpy.android: path=path.replace("/", "_") - #return renpy.loader.get_path(path) return renpy.config.savedir + "/" + path else: - return renpy.loader.get_path(path) + return os.path.join(renpy.config.basedir, path) # Global classes # We need to override standard list method. Original by Triptych (stackoverflow) |