Here's an idea I've had for reading the scn file on startup:
Loop through the entire scenario, split each string into key and line sections (like we do for Subsystems) and store these pairs in a map/hash_map. Then we can read the values from the dictionary in whatever order we want.
I think the biggest problem with this will be handling the parameters used by Orbiter. We could either send all strings read to ParseScenarioLineEx, or we could keep track of the keys used and let Orbiter handle any unused strings.
Any comments?
Loop through the entire scenario, split each string into key and line sections (like we do for Subsystems) and store these pairs in a map/hash_map. Then we can read the values from the dictionary in whatever order we want.
I think the biggest problem with this will be handling the parameters used by Orbiter. We could either send all strings read to ParseScenarioLineEx, or we could keep track of the keys used and let Orbiter handle any unused strings.
Any comments?