The Messenger: minor maintenance (#5965)

This commit is contained in:
Aaron Wagener
2026-02-25 19:24:50 -06:00
committed by GitHub
parent b30b2ecb07
commit eeb022fa0c
3 changed files with 11 additions and 3 deletions

View File

@@ -0,0 +1,4 @@
{
"game": "The Messenger",
"authors": ["alwaysintreble"]
}

View File

@@ -28,6 +28,8 @@ def create_yes_no_popup(title: str, text: str, callback: Callable[[str], None])
def launch_game(*args) -> None:
"""Check the game installation, then launch it"""
prompt: ButtonsPrompt | None = None
def courier_installed() -> bool:
"""Check if Courier is installed"""
assembly_path = os.path.join(game_folder, "TheMessenger_Data", "Managed", "Assembly-CSharp.dll")
@@ -190,7 +192,7 @@ def launch_game(*args) -> None:
def launch(answer: str | None = None) -> None:
"""Launch the game."""
nonlocal args
nonlocal args, prompt
if prompt:
prompt.dismiss()
@@ -256,3 +258,5 @@ def launch_game(*args) -> None:
prompt = create_yes_no_popup("Launch Game",
"Mod installed and up to date. Would you like to launch the game now?",
launch)
else:
launch()

View File

@@ -1,7 +1,7 @@
from typing import TYPE_CHECKING
from BaseClasses import CollectionState
from worlds.generic.Rules import CollectionRule, add_rule, allow_self_locking_items
from BaseClasses import CollectionState, CollectionRule
from worlds.generic.Rules import add_rule, allow_self_locking_items
from .constants import NOTES, PHOBEKINS
from .options import MessengerAccessibility