Advertisement
fastman92

Untitled

Nov 29th, 2016
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.96 KB | None | 0 0
  1. void CCore::ApplyHooks2 ( )
  2. {
  3.     WriteDebugEvent ( "CCore::ApplyHooks2" );
  4.    
  5.     HANDLE theFLA = LoadLibraryA("$fastman92limitAdjuster.asi");
  6.  
  7.     MessageBoxUTF8(0,
  8.         SString(_("The FLA: 0x%X"), (unsigned int)theFLA)
  9.         ,
  10.         "Error" + _E("CC40"), MB_OK | MB_ICONERROR | MB_TOPMOST);
  11.  
  12.     // Try this one a little later
  13.     if (!UsingAltD3DSetup())
  14.     {
  15.         m_pDirect3DHookManager->ApplyHook();
  16.     }
  17.     else
  18.     {
  19.         // Done a little later to get past the loading time required to decrypt the gta
  20.         // executable into memory...
  21.         if ( !CCore::GetSingleton ( ).AreModulesLoaded ( ) )
  22.         {
  23.             CCore::GetSingleton ( ).SetModulesLoaded ( true );
  24.    
  25.  
  26.             CCore::GetSingleton ( ).CreateNetwork ( );
  27.             CCore::GetSingleton ( ).CreateGame ( );
  28.             CCore::GetSingleton ( ).CreateMultiplayer ( );
  29.             CCore::GetSingleton ( ).CreateXML ( );
  30.             CCore::GetSingleton ( ).CreateGUI ( );
  31.         }
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement