2121using Orts . Simulation ;
2222using ORTS . Common ;
2323using System . IO ;
24- using System . Windows . Forms ;
2524using Orts . Common ;
26- using System . Diagnostics ;
2725
2826namespace SimulatorTester
2927{
@@ -37,23 +35,22 @@ static void Main(string[] args)
3735
3836 if ( files . Count != 1 || options . Contains ( "help" , StringComparer . InvariantCultureIgnoreCase ) )
3937 {
40- var version = FileVersionInfo . GetVersionInfo ( Application . ExecutablePath ) ;
41- Console . WriteLine ( "{0} {1}" , version . FileDescription , VersionInfo . VersionOrBuild ) ;
38+ Console . WriteLine ( "{0} {1}" , ApplicationInfo . ApplicationName , VersionInfo . VersionOrBuild ) ;
4239 Console . WriteLine ( ) ;
4340 Console . WriteLine ( "Usage:" ) ;
44- Console . WriteLine ( " {0} [options] <SAVE_FILE>" , Path . GetFileNameWithoutExtension ( Application . ExecutablePath ) ) ;
41+ Console . WriteLine ( " {0} [options] <SAVE_FILE>" , Path . GetFileNameWithoutExtension ( ApplicationInfo . ProcessFile ) ) ;
4542 Console . WriteLine ( ) ;
4643 Console . WriteLine ( "Arguments:" ) ;
47- Console . WriteLine ( " <SAVE_FILE> {0} save file to use" , Application . ProductName ) ;
44+ Console . WriteLine ( " <SAVE_FILE> {0} save file to use" , ApplicationInfo . ProductName ) ;
4845 Console . WriteLine ( ) ;
4946 Console . WriteLine ( "Options:" ) ;
5047 Console . WriteLine ( " /quiet Do not show summary of simulation (only exit code is set)" ) ;
51- Console . WriteLine ( " /verbose Show version and settings (similar to a {0} log)" , Application . ProductName ) ;
48+ Console . WriteLine ( " /verbose Show version and settings (similar to a {0} log)" , ApplicationInfo . ProductName ) ;
5249 Console . WriteLine ( " /fps <FPS> Set the simulation frame-rate [default: 10]" ) ;
5350 Console . WriteLine ( " /help Show help and usage information" ) ;
54- Console . WriteLine ( " ...and any standard {0} option" , Application . ProductName ) ;
51+ Console . WriteLine ( " ...and any standard {0} option" , ApplicationInfo . ProductName ) ;
5552 Console . WriteLine ( ) ;
56- Console . WriteLine ( "The {0} takes a save file and:" , version . FileDescription ) ;
53+ Console . WriteLine ( "The {0} takes a save file and:" , ApplicationInfo . ApplicationName ) ;
5754 Console . WriteLine ( " - Loads the same activity as contained in the save file" ) ;
5855 Console . WriteLine ( " - Runs the simulation at the specified FPS for the same duration as the save file" ) ;
5956 Console . WriteLine ( " - Compares the final position with that contained in the save file" ) ;
@@ -65,15 +62,15 @@ static void Main(string[] args)
6562
6663 if ( settings . Verbose )
6764 {
68- Console . WriteLine ( "This is a log file for {0}. Please include this file in bug reports." , Application . ProductName ) ;
65+ Console . WriteLine ( "This is a log file for {0}. Please include this file in bug reports." , ApplicationInfo . ProductName ) ;
6966 LogSeparator ( ) ;
7067
7168 SystemInfo . WriteSystemDetails ( Console . Out ) ;
7269 LogSeparator ( ) ;
7370
7471 Console . WriteLine ( "Version = {0}" , VersionInfo . Version . Length > 0 ? VersionInfo . Version : "<none>" ) ;
7572 Console . WriteLine ( "Build = {0}" , VersionInfo . Build ) ;
76- Console . WriteLine ( "Executable = {0}" , Path . GetFileName ( Application . ExecutablePath ) ) ;
73+ Console . WriteLine ( "Executable = {0}" , Path . GetFileName ( ApplicationInfo . ProcessFile ) ) ;
7774 foreach ( var arg in args )
7875 Console . WriteLine ( "Argument = {0}" , arg ) ;
7976 LogSeparator ( ) ;
0 commit comments