summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-09 14:28:37 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-09 14:28:37 -0300
commit49fa27cb35a313d042328c298c6c0fa9cbd2752b (patch)
tree800bed4e0d4bfeccfd98927c31d483f8e1886b86
parent9d4f4e1ae2c00f6b01aeff5b8f91e7ca10844cbb (diff)
downloadrenpy-49fa27cb35a313d042328c298c6c0fa9cbd2752b.tar.gz
renpy-49fa27cb35a313d042328c298c6c0fa9cbd2752b.tar.bz2
renpy-49fa27cb35a313d042328c298c6c0fa9cbd2752b.tar.xz
renpy-49fa27cb35a313d042328c298c6c0fa9cbd2752b.zip
Do not mix slashes and backslashes
-rw-r--r--game/renpy.rpy7
1 files changed, 5 insertions, 2 deletions
diff --git a/game/renpy.rpy b/game/renpy.rpy
index a5b3681..b32be46 100644
--- a/game/renpy.rpy
+++ b/game/renpy.rpy
@@ -85,7 +85,7 @@ label start:
RPCUpdate(persistent.serverlist[_return]["Name"], "tmw2")
HOST=persistent.serverlist[_return]["Host"]
PORT=persistent.serverlist[_return]["Port"]
- CMD=handle_client(launch=True).replace(" ", "\\ ")
+ CMD=handle_client(launch=True)
OPT="-s %s -y evol2 -p %s" % (HOST, PORT)
stdout("%s %s" % (CMD, OPT))
@@ -110,7 +110,10 @@ label start:
renpy.iconify()
## Launch your prefered game client, wait for it to finish
- app=execute("%s %s%s" % (CMD, OPT, PWD), shell=True)
+ if renpy.windows:
+ app=execute("\"%s\" %s%s" % (CMD, OPT, PWD), shell=True)
+ else:
+ app=execute("%s %s%s" % (CMD, OPT, PWD), shell=True)
if app:
traceback.print_exc()
stdout("An error happened: %d" % app)