summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-09 04:43:43 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-09 04:43:43 -0300
commit3f7e868838bc174e10c7f52ba9c93c73e4b86388 (patch)
tree1539ce09a40fa9130a1502373c029d0e2cff3099
parentd5898eef746374eb31c9a81dfe9a8b819308a23f (diff)
downloadrenpy-3f7e868838bc174e10c7f52ba9c93c73e4b86388.tar.gz
renpy-3f7e868838bc174e10c7f52ba9c93c73e4b86388.tar.bz2
renpy-3f7e868838bc174e10c7f52ba9c93c73e4b86388.tar.xz
renpy-3f7e868838bc174e10c7f52ba9c93c73e4b86388.zip
Set APPIMAGELAUNCHER_DISABLE on Linux environment because LawnCable told us so
-rw-r--r--game/client.rpy4
-rw-r--r--game/core.rpy10
2 files changed, 13 insertions, 1 deletions
diff --git a/game/client.rpy b/game/client.rpy
index 781b8f4..6977de6 100644
--- a/game/client.rpy
+++ b/game/client.rpy
@@ -50,6 +50,7 @@ init 1 python:
return False
return True
+ #######################
def install_manaplus():
status_update("Creating ManaPlus directory...", 61)
installdir=get_path("manaplus")
@@ -82,6 +83,7 @@ init 1 python:
return False
return True
+ ###############################
def cli_manaplus(launch=False):
global SCR_PROMPT, SCR_RESULT
## Check if ManaPlus is already installed
@@ -113,8 +115,10 @@ init 1 python:
stdout("Installation failed!", True)
return False
+ ##########
if launch:
if renpy.linux:
+ os.environ["APPIMAGELAUNCHER_DISABLE"]="1"
return get_path("manaplus")+"/ManaPlus.AppImage"
elif renpy.windows:
return get_path("manaplus")+"/Mana/manaplus.exe"
diff --git a/game/core.rpy b/game/core.rpy
index 668d650..f8e5b2e 100644
--- a/game/core.rpy
+++ b/game/core.rpy
@@ -15,6 +15,8 @@ init -3 python:
print("\n[STDBY] Loading Basic functions.......")
+ #############################################################################
+ ## Compatibility
# set PYTHON_VERSION variable (e.g. 2715, 3605 etc.)
PYTHON_VERSION="%d%d%02d" % (sys.version_info.major, sys.version_info.minor, sys.version_info.micro)
PYTHON_VERSION=int(PYTHON_VERSION)
@@ -29,6 +31,11 @@ init -3 python:
execute=subprocess.call
#############################################################################
+ ## Some other stuff
+ if renpy.linux:
+ os.environ["APPIMAGELAUNCHER_DISABLE"]="1"
+
+ #############################################################################
## Configuration and Defaults
if (persistent.discord is None):
persistent.discord = True
@@ -164,11 +171,12 @@ init -4 python:
def parse_command():
parser = renpy.arguments.ArgumentParser()
- # Collect args
+ ## Collect args
parser.add_argument('args', nargs='+', help="Command-line arguments.")
targs = parser.parse_args()
args = targs.args
+ ## Debug information
if config.developer:
print("PARSEC")
print("Args: %s" % str(args))