Skip to content

Commit 27a39a6

Browse files
committed
docs: Update launcher comments
1 parent a0501e6 commit 27a39a6

File tree

1 file changed

+8
-32
lines changed

1 file changed

+8
-32
lines changed

Source/Launcher/Program.cs

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,14 @@
1515
// You should have received a copy of the GNU General Public License
1616
// along with Open Rails. If not, see <http://www.gnu.org/licenses/>.
1717

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
3126
*/
3227

3328
using Microsoft.Win32;
@@ -62,7 +57,6 @@ static void Main()
6257
List<DependencyHint> missingDependencies = new List<DependencyHint>();
6358

6459
CheckNetFx(missingDependencies);
65-
//CheckDXRuntime(missingDependencies);
6660

6761
if (missingDependencies.Count > 0)
6862
{
@@ -116,24 +110,6 @@ static void CheckNetFx(List<DependencyHint> missingDependencies)
116110
});
117111
}
118112

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-
137113
static void CheckOR(List<string> missingFiles, string path)
138114
{
139115
foreach (var file in new[] {

0 commit comments

Comments
 (0)