Skip to content

Commit a50066b

Browse files
committed
Define config.app_config in main.py instead of config.py, remove app_cfg 'shortcut'.
1 parent a148c11 commit a50066b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,4 @@ class Configuration:
3131
jump_force: float = 25.0
3232

3333

34-
# --- Global Config Instance ---
35-
app_config = Configuration()
34+
app_config: Configuration = None # Global app config, set in main.py

main.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ def run():
1414
current_addresses: ResolvedAddresses | None = None
1515
last_resolve_time = 0
1616

17+
config.app_config = config.Configuration() # Initialize config
18+
1719
try:
1820
input_handler.setup_hotkeys()
1921

@@ -50,16 +52,15 @@ def run():
5052
continue
5153

5254
# --- Hack Application Logic ---
53-
app_cfg = config.app_config # Get current config state
54-
if app_cfg.hack_on and current_addresses:
55+
if config.app_config.hack_on and current_addresses:
5556
foreground_pid = memory.get_foreground_process_pid()
5657
is_target_active = foreground_pid is not None and foreground_pid == mem_manager.process_id
5758

5859
if is_target_active:
5960
try:
60-
if app_cfg.current_hack == config.HackMode.ACCELBOOST:
61+
if config.app_config.current_hack == config.HackMode.ACCELBOOST:
6162
hacks.apply_accelboost(mem_manager, current_addresses)
62-
elif app_cfg.current_hack == config.HackMode.FLY:
63+
elif config.app_config.current_hack == config.HackMode.FLY:
6364
hacks.apply_fly(mem_manager, current_addresses)
6465

6566
# --- Noclip Bypass Logic ---

0 commit comments

Comments
 (0)