Skip to content

Commit

Permalink
Enabled GTA open fail dialog more often
Browse files Browse the repository at this point in the history
  • Loading branch information
ccw808 committed Nov 25, 2016
1 parent 1e7a98d commit 97c70e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Client/loader/MainFunctions.cpp
Expand Up @@ -459,7 +459,10 @@ void PreLaunchWatchDogs ( void )
// Check for unclean stop on previous run
#ifndef MTA_DEBUG
if ( WatchDogIsSectionOpen ( "L0" ) )
{
WatchDogSetUncleanStop ( true ); // Flag to maybe do things differently if MTA exit code on last run was not 0
CheckAndShowFileOpenFailureMessage();
}
else
#endif
WatchDogSetUncleanStop ( false );
Expand Down
1 change: 1 addition & 0 deletions Client/loader/Utils.cpp
Expand Up @@ -1771,6 +1771,7 @@ bool CheckAndShowFileOpenFailureMessage ( void )

if ( !strFilename.empty () )
{
SetApplicationSetting( "diagnostics", "gta-fopen-fail", "" );
SString strMsg ( _("GTA:SA had trouble opening the file '%s'"), *strFilename );
DisplayErrorMessageBox ( strMsg, _E("CL31"), SString( "gta-fopen-fail&name=%s", *strFilename ) );
return true;
Expand Down

0 comments on commit 97c70e5

Please sign in to comment.