Skip to content

Commit c847769

Browse files
committed
Automatic merge of T1.6-rc8-59-g2eb7441b08 and 11 pull requests
- Pull request #1086 at d8d61eb: Add Settings Exporter tool (copy settings to INI, etc) - Pull request #1091 at e813c42: Automatic speed control - Pull request #1104 at 7919243: Handle simple adhesion within the axle module - Pull request #1115 at 270f22f: Do not activate ETS switch if no suitable cars are attached - Pull request #1120 at ba3c47f: Automatically Calculate Friction Values if Missing - Pull request #1121 at 91d2d26: Manually Override Articulation - Pull request #1124 at e241a0d: Built-in PBL2 brake controller - Pull request #1130 at 38aa3fd: Fix F9 points to an incorrect car ID. - Pull request #1157 at 39cd994: Dynamic brake authorization by TCS - Pull request #1082 at 5845a1a: Allow variable water level in glass gauge - Pull request #1128 at 1d7643d: Particle Emitter Overhaul
13 parents cb931c5 + 2eb7441 + d8d61eb + e813c42 + 7919243 + 270f22f + ba3c47f + 91d2d26 + e241a0d + 38aa3fd + 39cd994 + 5845a1a + 1d7643d commit c847769

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Source/Contrib/SettingsExporter/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static int Main(string[] args)
6767
// determine where to load from
6868
if (fromArg.Equals("INI")) { loadFilePath = SettingsBase.DefaultSettingsFileName; }
6969
else if (fromArg.Equals("REG")) { loadRegistryKey = SettingsBase.DefaultRegistryKey; }
70-
else if (fromArg.EndsWith(".ini")) { loadFilePath = fromArg; }
70+
else if (fromArg.Contains(".ini")) { loadFilePath = fromArg; }
7171
else { loadRegistryKey = fromArg; }
7272

7373
// check that source exists
@@ -212,6 +212,8 @@ static void ShowHelp()
212212
Console.WriteLine(" <to> Specify the destination to save the settings to. Similar to <from>.");
213213
Console.WriteLine(" /h, /help Show this help.");
214214
Console.WriteLine();
215+
Console.WriteLine("Important: Close all OpenRails instances before exporting the settings. Otherwise the exported settings may be stale.");
216+
Console.WriteLine();
215217
Console.WriteLine("This utility reads the Settings (Options) from one location, and exports them to another location.");
216218
Console.WriteLine("It creates a backup of any settings that will be overwritten. Example:");
217219
Console.WriteLine(" <installfolder>\\OpenRails.ini.bak");

Source/Documentation/Manual/appendices.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,9 @@ The Settings Exporter is accessible from the "Tools" button in the main window.
750750
The Settings Exporter may also be used to create a backup of the settings, or to copy the settings from
751751
the INI file back into the registry.
752752

753+
Important: Close all OpenRails instances before exporting the settings.
754+
Otherwise the exported settings may be stale.
755+
753756
Alternatively, create an empty file "OpenRails.ini" in the same folder as "OpenRails.exe" and start Open Rails.
754757
The program will attempt to load settings from the file, using default values for settings that
755758
cannot be found and populates the INI file with these settings.

0 commit comments

Comments
 (0)