Skip to content

Commit

Permalink
Updated online help link if VC redist missing.
Browse files Browse the repository at this point in the history
Updated code comments in launchers.
  • Loading branch information
ccw808 committed Jul 9, 2016
1 parent d477991 commit 584f0ad
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
11 changes: 11 additions & 0 deletions MTA10/ceflauncher/Main.cpp
Expand Up @@ -11,6 +11,17 @@
#include <Windows.h>
#include <string>

/*
IMPORTANT
If this project changes, a new release build should be copied into
the Shared\data\launchers directory.
The .exe in Shared\data\launchers will be used by the installer and updater.
(set flag.new_cef_exe on the build server to generate new exe)
*/

int _declspec(dllimport) InitCEF ();

int WINAPI WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdShow, int nCmdShow )
Expand Down
20 changes: 6 additions & 14 deletions MTA10/launch/Main.cpp
Expand Up @@ -16,11 +16,11 @@
IMPORTANT
If this project changes, a new release build should be copied into
the launch/output diectory.
the Shared\data\launchers directory.
The .exe in launch/output will be used by the installer and updater.
The .exe in Shared\data\launchers will be used by the installer and updater.
(set flag.newexe on the build server to generate new exe)
(set flag.new_client_exe on the build server to generate new exe)
*/

///////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -69,17 +69,9 @@ int WINAPI WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
SString strMessage ( "Failed to load: '%s'\n\n%s", *strLoaderDllPathFilename, *strError );
AddReportLog ( 5711, strMessage );

// Check if runtime is loadable
HMODULE hModule = LoadLibrary ( MSVCR_DLL );
if ( hModule )
{
BrowseToSolution ( "loader-dll-missing", ASK_GO_ONLINE, strMessage );
FreeLibrary ( hModule );
}
else
{
BrowseToSolution ( "launch-" MSVCR_DLL "-missing", ASK_GO_ONLINE, "Redistributable Packages for Visual Studio are not installed" );
}
// Error could be due to missing VC Redist.
// Online help page will have VC Redist download link.
BrowseToSolution ( "loader-dll-not-loadable", ASK_GO_ONLINE, strMessage );
}

return iReturnCode;
Expand Down
8 changes: 4 additions & 4 deletions MTA10_Server/launcher/Main.cpp
Expand Up @@ -14,11 +14,11 @@
IMPORTANT (Windows only)
If this project changes, a new release build should be copied into
the launcher/output diectory.
the Shared\data\launchers directory.
The 'MTA Server.exe' in launcher/output will be used by the installer and updater.
The .exe in Shared\data\launchers will be used by the installer and updater.
(set flag.new_server_exe on the build server to generate a new 'MTA Server.exe')
(set flag.new_server_exe on the build server to generate new exe)
*/

#include "CDynamicLibrary.h"
Expand Down Expand Up @@ -172,7 +172,7 @@ int main ( int argc, char* argv [] )
printf ( "ERROR: Could not load %s\n", LIB_CORE );
printf ( "* Check installed data files.\n" );
#ifdef WIN32
printf ( "* Check installed Microsoft Visual C++ 2013 Redistributable Package (x86).\n" );
printf ( "* Check installed Microsoft Visual C++ Redistributable Package (x86).\n" );
#endif
}

Expand Down

0 comments on commit 584f0ad

Please sign in to comment.