summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-09 12:44:47 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-09 12:44:47 -0300
commit619e065679167f6476160fa7256a4bb06db04e04 (patch)
treeb9f2cc1324a35c56f80d1429678f8396719a4802
parentbb33dd6ea1d638a4f24d4227e2abbefeda78b310 (diff)
downloadrenpy-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--.gitignore1
-rw-r--r--game/core.rpy6
2 files changed, 4 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 1fb967e..ccba47b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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)