Skip to content

Commit

Permalink
v1.5.1 Steam load flight plan hotfix
Browse files Browse the repository at this point in the history
This fixes an issue where the flight plan would not load on the Steam version.
  • Loading branch information
mracko authored Feb 8, 2021
1 parent 0cf58ef commit 5170cb8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions glass_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ def load_fltpln():

try:
# MS Store
fltpln_dir = fltpln_dir + "\LocalState\MISSIONS\Custom\CustomFlight\CUSTOMFLIGHT.FLT"
with open(fltpln_dir, 'r') as fltpln:
fltpln_dir_full = fltpln_dir + "\LocalState\MISSIONS\Custom\CustomFlight\CUSTOMFLIGHT.FLT"
with open(fltpln_dir_full, 'r') as fltpln:
fltpln_lines = fltpln.readlines()
except:
# Steam
fltpln_dir = fltpln_dir + "\MISSIONS\Custom\CustomFlight\CUSTOMFLIGHT.FLT"
with open(fltpln_dir, 'r') as fltpln:
fltpln_dir_full = fltpln_dir + "\MISSIONS\Custom\CustomFlight\CUSTOMFLIGHT.FLT"
with open(fltpln_dir_full, 'r') as fltpln:
fltpln_lines = fltpln.readlines()

# Process Flight Plan Function
Expand Down

0 comments on commit 5170cb8

Please sign in to comment.