@@ -90,7 +90,7 @@ void Diag::Begin ( void )
90
90
Log::WriteFileToLog ( MTAPath + " \\ MTA\\ logfile.txt" , " logfile.txt" );
91
91
Log::WriteFileToLog ( MTAPath + " \\ MTA\\ CEGUI.log" , " CEGUI.log" );
92
92
Log::WriteFileToLog ( MTAPath + " \\ MTA\\ timings.log" , " timings.log" );
93
- if ( bIsVistaOrNewer ) { Log::WriteFileToLog ( programData + " \\ MTA San Andreas All\\ " + MTAShortVersion + " \\ report.log" , " report.log" ); }
93
+ if ( IsVistaOrNewer () ) { Log::WriteFileToLog ( programData + " \\ MTA San Andreas All\\ " + MTAShortVersion + " \\ report.log" , " report.log" ); }
94
94
95
95
DoSystemCommandWithOutput ( " ipconfig /all >" ); // get network configuration
96
96
DoSystemCommandWithOutput ( " wevtutil qe Application /q:\" Event [System [(Level=2)] ] [EventData [(Data='Multi Theft Auto.exe')] ]\" /c:1 /f:text /rd:true >" ); // might help resolve Visual C++ runtime issues
@@ -101,10 +101,15 @@ void Diag::Begin ( void )
101
101
GetDir ( GTAPath );
102
102
GetDir ( ( GTAPath + " \\ models" ) );
103
103
104
+ Log::WriteStringToLog ( GetFileMD5 ( GTAPath + " \\ gta_sa.exe" ) );
105
+ Log::WriteStringToLog ( GetFileMD5 ( GTAPath + " \\ models\\ gta3.img" ) );
106
+ Log::WriteStringToLog ( " " );
107
+
104
108
// font diagnostics
105
109
Log::WriteStringToLog ( " Verdana (TrueType) registry value:" , ReadRegKey ( " Verdana (TrueType)" , " SOFTWARE\\ Microsoft\\ Windows NT\\ CurrentVersion\\ Fonts\\ " ) );
110
+ Log::WriteStringToLog ( GetFileMD5 ( systemRoot + " \\ Fonts\\ verdana.ttf" ) );
106
111
Log::WriteStringToLog ( " " );
107
- GetDir ( systemRoot + " \\ fonts \\ verd*" );
112
+ GetDir ( systemRoot + " \\ Fonts \\ verd*" );
108
113
109
114
// close the log file for writing
110
115
Log::Close ();
@@ -148,10 +153,9 @@ void Diag::Cleanup ( void )
148
153
void Diag::GeneratePaths ( void )
149
154
{
150
155
// obtain Temp and WINDOWS environment variables, and store system time
151
- bIsVistaOrNewer = IsVistaOrNewer (); // is the user running Vista or newer?
152
156
tempDir = getenv ( " Temp" ); // get the Temp directory
153
157
systemRoot = getenv ( " SystemRoot" ); // get the WINDOWS directory
154
- if ( bIsVistaOrNewer ) { programData = getenv ( " ProgramData " ); } // get the ProgramData directory
158
+ programData = getenv ( " AllUsersProfile " ); // get the ProgramData directory
155
159
IsWow64Process ( GetCurrentProcess (), &bIsWOW64 ); // is MTADiag running under WOW64?
156
160
GetLocalTime ( &sysTime ); // get the current system time
157
161
0 commit comments