Remove orphan effects and add headless smoke hooks

This commit is contained in:
root
2026-04-14 21:22:50 +02:00
parent 8767a2b3ac
commit b9065ca8d2
11 changed files with 372 additions and 1328 deletions

View File

@@ -1,3 +1,4 @@
import os
import dbg
import app
import net
@@ -18,6 +19,10 @@ import ime
import uiScriptLocale
import debugInfo
def _AllowHeadlessLoginInfo():
return os.environ.get("M2_HEADLESS_SCENARIO", "").strip().lower() == "gm_teleport"
# Multi-language hot-reload system
from uilocaleselector import LocaleSelector
@@ -715,7 +720,7 @@ class LoginWindow(ui.ScriptWindow):
def __LoadLoginInfo(self, loginInfoFileName):
# This should not work in production
if not debugInfo.IsDebugMode():
if not debugInfo.IsDebugMode() and not _AllowHeadlessLoginInfo():
app.loggined = FALSE
else:
try: