From 8e304deee233011977cfcdcb990b27a1ad99df2f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 29 Aug 2021 17:46:17 -0300 Subject: Add `remote` and `local` init flags --- game/core.rpy | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/game/core.rpy b/game/core.rpy index 3072aab..4b2b77d 100644 --- a/game/core.rpy +++ b/game/core.rpy @@ -260,6 +260,18 @@ init -4 python: elif (cmd == "launch"): print("Auto-launch mode Enabled") AUTOLAUNCH = True + elif (cmd == "remote"): + print("Using remote servers...") + VAULT_HOST = "https://api.themanaworld.org:13370" + VAULT_CERT = False + vault=requests.Session() + elif (cmd == "local"): + print("Using local servers...") + VAULT_HOST = "https://localhost:13370" + VAULT_CERT = "http://localhost/launcher/cert.pem" + vault=requests.Session() + vault.cert = get_path("cert.pem") + vault.verify = get_path("cert.pem") elif (cmd == "version"): print("%s v%s %s" % (config.name, config.version, "Mirror Lake")) print("%s %s" % (str(renpy.version()), renpy.version_name)) -- cgit v1.2.3-70-g09d2