From 89c51c05f1ab3591b3e7c3e4dd7c375e0f2dab22 Mon Sep 17 00:00:00 2001 From: edschuy95 Date: Tue, 20 Jan 2026 20:37:48 -0500 Subject: [PATCH] scoping issue fix --- RA3MP3Playback.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/RA3MP3Playback.py b/RA3MP3Playback.py index f9921b4..ef26c83 100644 --- a/RA3MP3Playback.py +++ b/RA3MP3Playback.py @@ -51,6 +51,7 @@ VOLUME_STEP = 0.1 # step for W/S volume control # ====================== GLOBAL STATE ===================== volumecheck = False +master_fd = None gametypecheck = False arenacheck = False last_arena0 = "undefined" @@ -512,6 +513,7 @@ def handle_game_line(line, pty_proc): #stop_playback() def send_command(proc, cmd): + global master_fd #subprocess version try: if os.name == "nt": @@ -525,7 +527,7 @@ def send_command(proc, cmd): # ======================== MAIN =========================== def main(): - global playlist, ra3_maps, pty_proc, playlist_path, ra3_maps_path, arena0_blacklist, arena0_bl_path + global playlist, ra3_maps, pty_proc, playlist_path, ra3_maps_path, arena0_blacklist, arena0_bl_path, master_fd print(f"Loading Quake 3 Arena...")