Skip to content

Commit 7242efa

Browse files
committed
Added another log; removed a temporary file
1 parent 8b57fb9 commit 7242efa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

MTADiag/Common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
#include <vector>
2323
#include "Log.h"
2424

25-
#define VERSION "2.7"
25+
#define VERSION "2.7.1"

MTADiag/Diag.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ void Diag::Begin ( void )
7373
};
7474

7575
// check if MTA version matches the latest auto-update nightly
76-
if ( Curl::DownloadFile ( MTAVerURL, files[5].c_str() ) ) // download the version appropriation HTML
76+
if ( Curl::DownloadFile ( MTAVerURL, files[1].c_str() ) ) // download the version appropriation HTML
7777
{
7878
std::string MTAVersionTrim = MTAVersion; // copy the MTAVersion string
7979
MTAVersionTrim.resize ( 15 ); // trim the MTAVersion string stored in registry to 15 characters; the version appropriation HTML has a 15 char string lacking two trailing zeros
80-
if ( FindInFile ( files[5].c_str(), ( MTAVersionTrim ) ) ) // look for the current MTA version string in it
80+
if ( FindInFile ( files[1].c_str(), ( MTAVersionTrim ) ) ) // look for the current MTA version string in it
8181
std::cout << "MTA is up-to-date." << std::endl << std::endl; // we've found it, hooray, we don't need to update MTA
8282
else
8383
UpdateMTA(); // update MTA to latest nightly / unstable build, depending on MTA's major version
@@ -127,6 +127,7 @@ void Diag::Begin ( void )
127127
Log::WriteFileToLog ( MTAPath + "\\MTA\\logfile.txt", "logfile.txt" );
128128
Log::WriteFileToLog ( MTAPath + "\\MTA\\CEGUI.log", "CEGUI.log" );
129129
Log::WriteFileToLog ( MTAPath + "\\timings.log", "timings.log" );
130+
Log::WriteFileToLog ( MTAPath + "\\mods\\deathmatch\\resources\\benchmark\\output\\bench.log", "bench.log" );
130131
if ( IsVistaOrNewer() ) { Log::WriteFileToLog ( programData + "\\MTA San Andreas All\\" + MTAShortVersion + "\\report.log", "report.log" ); }
131132

132133
DoSystemCommandWithOutput ( "ipconfig /all >" ); // get network configuration
@@ -223,7 +224,6 @@ void Diag::GeneratePaths ( void )
223224
files.push_back ( tempDir + "\\MTANightly.exe" ); // filepath for nightly
224225
files.push_back ( tempDir + "\\WMICUni.txt" ); // WMIC command outputs as Unicode; we convert this file to ASCII for proper insertion & formatting in the log
225226
files.push_back ( systemRoot + "\\system32\\D3DX9_43.dll" ); // we check for the presence of this file to determine if DirectX is up to date
226-
files.push_back ( tempDir + "\\ver.txt" ); // MTA's auto-update version appropriation
227227

228228
// fill the GTAFiles vector
229229
GTAFiles.push_back ( "\\eax.dll" );

0 commit comments

Comments
 (0)