summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-08 19:00:28 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-08 19:00:28 -0300
commit591a310426df2b33af48efb71bc451f3aedfa0f2 (patch)
tree85fd2ae844eb74f3d2fb735a303adfe6598af345
parent57dab1fef9dd789140a097f76f75f518b0334f8d (diff)
downloadrenpy-591a310426df2b33af48efb71bc451f3aedfa0f2.tar.gz
renpy-591a310426df2b33af48efb71bc451f3aedfa0f2.tar.bz2
renpy-591a310426df2b33af48efb71bc451f3aedfa0f2.tar.xz
renpy-591a310426df2b33af48efb71bc451f3aedfa0f2.zip
Use a more reliable code to create directories (should now work on Wine)
-rw-r--r--game/client.rpy6
1 files changed, 2 insertions, 4 deletions
diff --git a/game/client.rpy b/game/client.rpy
index db2b6a6..781b8f4 100644
--- a/game/client.rpy
+++ b/game/client.rpy
@@ -51,12 +51,12 @@ init 1 python:
return True
def install_manaplus():
+ status_update("Creating ManaPlus directory...", 61)
installdir=get_path("manaplus")
+ os.mkdir(installdir)
## Detect your plataform
#########################################################
if renpy.linux:
- status_update("Creating ManaPlus directory...", 61)
- execute("mkdir %s" % installdir, shell=True)
if not download_manaplus("ManaPlus.AppImage"):
return False
@@ -65,8 +65,6 @@ init 1 python:
status_update("Installation successful!", 75)
#########################################################
elif renpy.windows:
- status_update("Creating ManaPlus directory...", 61)
- execute("mkdir %s" % installdir, shell=True)
if not download_manaplus("ManaPlus.zip"):
return False