From 619e065679167f6476160fa7256a4bb06db04e04 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 9 May 2021 12:44:47 -0300 Subject: Move working directory to base instead of save or game --- .gitignore | 1 + game/core.rpy | 6 +++--- 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) -- cgit v1.2.3-70-g09d2