Skip to content

Commit 5170cb8

Browse files
authored
v1.5.1 Steam load flight plan hotfix
This fixes an issue where the flight plan would not load on the Steam version.
1 parent 0cf58ef commit 5170cb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

glass_server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ def load_fltpln():
135135

136136
try:
137137
# MS Store
138-
fltpln_dir = fltpln_dir + "\LocalState\MISSIONS\Custom\CustomFlight\CUSTOMFLIGHT.FLT"
139-
with open(fltpln_dir, 'r') as fltpln:
138+
fltpln_dir_full = fltpln_dir + "\LocalState\MISSIONS\Custom\CustomFlight\CUSTOMFLIGHT.FLT"
139+
with open(fltpln_dir_full, 'r') as fltpln:
140140
fltpln_lines = fltpln.readlines()
141141
except:
142142
# Steam
143-
fltpln_dir = fltpln_dir + "\MISSIONS\Custom\CustomFlight\CUSTOMFLIGHT.FLT"
144-
with open(fltpln_dir, 'r') as fltpln:
143+
fltpln_dir_full = fltpln_dir + "\MISSIONS\Custom\CustomFlight\CUSTOMFLIGHT.FLT"
144+
with open(fltpln_dir_full, 'r') as fltpln:
145145
fltpln_lines = fltpln.readlines()
146146

147147
# Process Flight Plan Function

0 commit comments

Comments
 (0)