scoping issue fix
This commit is contained in:
parent
18ebd785e2
commit
89c51c05f1
1 changed files with 3 additions and 1 deletions
|
|
@ -51,6 +51,7 @@ VOLUME_STEP = 0.1 # step for W/S volume control
|
||||||
|
|
||||||
# ====================== GLOBAL STATE =====================
|
# ====================== GLOBAL STATE =====================
|
||||||
volumecheck = False
|
volumecheck = False
|
||||||
|
master_fd = None
|
||||||
gametypecheck = False
|
gametypecheck = False
|
||||||
arenacheck = False
|
arenacheck = False
|
||||||
last_arena0 = "undefined"
|
last_arena0 = "undefined"
|
||||||
|
|
@ -512,6 +513,7 @@ def handle_game_line(line, pty_proc):
|
||||||
#stop_playback()
|
#stop_playback()
|
||||||
|
|
||||||
def send_command(proc, cmd):
|
def send_command(proc, cmd):
|
||||||
|
global master_fd
|
||||||
#subprocess version
|
#subprocess version
|
||||||
try:
|
try:
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
|
|
@ -525,7 +527,7 @@ def send_command(proc, cmd):
|
||||||
|
|
||||||
# ======================== MAIN ===========================
|
# ======================== MAIN ===========================
|
||||||
def 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...")
|
print(f"Loading Quake 3 Arena...")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue