File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff 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" ) ;
Original file line number Diff line number Diff line change @@ -750,6 +750,9 @@ The Settings Exporter is accessible from the "Tools" button in the main window.
750750The Settings Exporter may also be used to create a backup of the settings, or to copy the settings from
751751the 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+
753756Alternatively, create an empty file "OpenRails.ini" in the same folder as "OpenRails.exe" and start Open Rails.
754757The program will attempt to load settings from the file, using default values for settings that
755758cannot be found and populates the INI file with these settings.
You can’t perform that action at this time.
0 commit comments