|
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 |
|
18 |
| -/* ORTS Launcher |
19 |
| - * |
20 |
| - * This is the program from which users execute ORTS. |
21 |
| - * Its purpose has been to check for required dependencies before launching the rest of the ORTS executables. |
22 |
| - * Although this check is also made by the Open Rails Installer, Open Rails can be delivered and used without |
23 |
| - * using the Installer, so a check at run-time is worthwhile. |
24 |
| - * This program must be compiled with a minimum of dependencies so that it is guaranteed to run. |
25 |
| - * |
26 |
| - * This was true before Open Rails v1.4 and dependencies included XNA v3.1 and .NET v3.5 (SP1). |
27 |
| - * With v1.4 it is no longer the case, since XNA has been superseded by Monogame. |
28 |
| - * The other dependency for v1.4 is .NET 4.7.2 which runs on Windows from 7 (SP1) upwards. |
29 |
| - * Windows 7 and upwards now checks an executable and prompts for the installation of .NET 4.7.2 before running |
30 |
| - * that executable. The checks made here are now redundant and are kept just for easy reference. |
| 18 | +/* Open Rails Launcher |
| 19 | + * |
| 20 | + * This is the program which users launch. Its purpose is to check for the |
| 21 | + * required dependencies before launching the menu, so it is designed to |
| 22 | + * run on clean versions of Windows 7 and up |
| 23 | + * |
| 24 | + * Dependencies checked for: |
| 25 | + * - Microsoft .NET Framework 4.7.2 |
31 | 26 | */
|
32 | 27 |
|
33 | 28 | using Microsoft.Win32;
|
@@ -62,7 +57,6 @@ static void Main()
|
62 | 57 | List<DependencyHint> missingDependencies = new List<DependencyHint>();
|
63 | 58 |
|
64 | 59 | CheckNetFx(missingDependencies);
|
65 |
| - //CheckDXRuntime(missingDependencies); |
66 | 60 |
|
67 | 61 | if (missingDependencies.Count > 0)
|
68 | 62 | {
|
@@ -116,24 +110,6 @@ static void CheckNetFx(List<DependencyHint> missingDependencies)
|
116 | 110 | });
|
117 | 111 | }
|
118 | 112 |
|
119 |
| - // With OR v1.4, there is no longer any need to check for DirectX. |
120 |
| - // Minimum WIndows version 7 (SP1) guarantees DirectX v11 driver is available and OR v1.4 requires DirectX 10.0 level 9_1 (equivalent to DirectX 9.0c), |
121 |
| - // so checking for minimum Windows is sufficient. |
122 |
| - // Of course, this does not gurantee that the graphics card is also compatible with DirectX 10.0 level 9_1, but that cannot be checked by the Launcher. |
123 |
| - //static void CheckDXRuntime(List<DependencyHint> missingDependencies) |
124 |
| - //{ |
125 |
| - // if (File.Exists(Path.Combine(Environment.SystemDirectory, "D3Dcompiler_43.dll"))) //there is a dependency in Monogame requiring the specific version of D3D compiler |
126 |
| - // return; |
127 |
| - |
128 |
| - // missingDependencies.Add(new DependencyHint() |
129 |
| - // { |
130 |
| - // Name = "DirectX 9 Runtime", |
131 |
| - // Text = "Please go to\n https://www.microsoft.com/en-us/download/details.aspx?id=35&nowin10 \nto download the web installer for " + |
132 |
| - // "DirectX Runtime and install the software. While downloading and installing, you may uncheck the installation of MSN and Bing software.", |
133 |
| - // Url = "https://www.microsoft.com/en-us/download/details.aspx?id=35&nowin10" |
134 |
| - // }); |
135 |
| - //} |
136 |
| - |
137 | 113 | static void CheckOR(List<string> missingFiles, string path)
|
138 | 114 | {
|
139 | 115 | foreach (var file in new[] {
|
|
0 commit comments