|
1 | 1 | // COPYRIGHT 2025 by the Open Rails project. |
2 | | -// |
| 2 | +// |
3 | 3 | // This file is part of Open Rails. |
4 | | -// |
| 4 | +// |
5 | 5 | // Open Rails is free software: you can redistribute it and/or modify |
6 | 6 | // it under the terms of the GNU General Public License as published by |
7 | 7 | // the Free Software Foundation, either version 3 of the License, or |
8 | 8 | // (at your option) any later version. |
9 | | -// |
| 9 | +// |
10 | 10 | // Open Rails is distributed in the hope that it will be useful, |
11 | 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | 13 | // GNU General Public License for more details. |
14 | | -// |
| 14 | +// |
15 | 15 | // You should have received a copy of the GNU General Public License |
16 | 16 | // along with Open Rails. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 |
|
@@ -128,8 +128,8 @@ static int Main(string[] args) |
128 | 128 | if (!Directory.Exists(dir)) { Console.WriteLine("ERROR: Directory {0} to save to does not exist.", dir); Environment.Exit(1); } |
129 | 129 | } |
130 | 130 | else if (toArg.StartsWith("SOFTWARE")) { saveRegistryKey = toArg; } |
131 | | - else |
132 | | - { |
| 131 | + else |
| 132 | + { |
133 | 133 | Console.WriteLine("ERROR: Invalid destination {0}.", toArg); |
134 | 134 | Console.WriteLine("ERROR: Registry key must start with \"SOFTWARE\", or INI path must include \".ini\"."); |
135 | 135 | Environment.Exit(1); |
@@ -161,7 +161,7 @@ static int Main(string[] args) |
161 | 161 | if (regKey != null) |
162 | 162 | { |
163 | 163 | using (var backupRegKey = Registry.CurrentUser.CreateSubKey(saveRegistryKey + "-Backup")) |
164 | | - { |
| 164 | + { |
165 | 165 | CopyRegistryKey(regKey, backupRegKey); |
166 | 166 | Console.WriteLine("Info: Backed up existing Registry key as {0}.", backupRegKey.Name); |
167 | 167 | } |
@@ -195,7 +195,7 @@ static int Main(string[] args) |
195 | 195 | Console.WriteLine("To use the settings in the registry, manually delete the INI file in the OpenRails folder."); |
196 | 196 | Console.WriteLine(" eg: {0}", Path.Combine(ApplicationInfo.ProcessDirectory, SettingsBase.DefaultSettingsFileName)); |
197 | 197 | } |
198 | | - |
| 198 | + |
199 | 199 | return 0; |
200 | 200 | } |
201 | 201 |
|
|
0 commit comments