Guest User

Untitled

a guest
Mar 16th, 2011
1,272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.18 KB | None | 0 0
  1. // steam_api_emu.cpp : Defines the entry point for the DLL application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "SteamclientAPI.h"
  6. #include "SteamAPI.h"
  7. #include "CAppTools.h"
  8.  
  9. class CSteamUser012 : public ISteamUser012
  10. {
  11. public:
  12. HSteamUser GetHSteamUser()
  13. {
  14. GApp.AddToLogFileA( "ISteamUser.log", "GetHSteamUser" );
  15.  
  16. return NULL;
  17. }
  18.  
  19. bool LoggedOn()
  20. {
  21. GApp.AddToLogFileA( "ISteamUser.log", "LoggedOn" );
  22.  
  23. return true;
  24. }
  25.  
  26. CSteamID GetSteamID()
  27. {
  28. GApp.AddToLogFileA( "ISteamUser.log", "GetSteamID" );
  29.  
  30. return CSteamID( 33068178, k_EUniversePublic, k_EAccountTypeIndividual );
  31. }
  32.  
  33. int InitiateGameConnection( void *pAuthBlob, int cbMaxAuthBlob, CSteamID steamIDGameServer, uint32 unIPServer, uint16 usPortServer, bool bSecure )
  34. {
  35. GApp.AddToLogFileA( "ISteamUser.log", "InitiateGameConnection" );
  36.  
  37. return 1;
  38. }
  39.  
  40. void TerminateGameConnection( uint32 unIPServer, uint16 usPortServer )
  41. {
  42. GApp.AddToLogFileA( "ISteamUser.log", "TerminateGameConnection" );
  43.  
  44. //
  45. }
  46.  
  47. void TrackAppUsageEvent( CGameID gameID, int eAppUsageEvent, const char *pchExtraInfo )
  48. {
  49. GApp.AddToLogFileA( "ISteamUser.log", "TrackAppUsageEvent" );
  50.  
  51. //
  52. }
  53.  
  54. bool GetUserDataFolder( char *pchBuffer, int cubBuffer )
  55. {
  56. GApp.AddToLogFileA( "ISteamUser.log", "GetUserDataFolder" );
  57.  
  58. strcpy( pchBuffer, GApp.GetDirectoryFileA( "steam_data" ) );
  59.  
  60. return true;
  61. }
  62.  
  63. void StartVoiceRecording( )
  64. {
  65. GApp.AddToLogFileA( "ISteamUser.log", "StartVoiceRecording" );
  66. }
  67.  
  68. void StopVoiceRecording( )
  69. {
  70. GApp.AddToLogFileA( "ISteamUser.log", "StopVoiceRecording" );
  71. }
  72.  
  73. EVoiceResult GetCompressedVoice( void *pDestBuffer, uint32 cbDestBufferSize, uint32 *nBytesWritten )
  74. {
  75. GApp.AddToLogFileA( "ISteamUser.log", "GetCompressedVoice" );
  76. return k_EVoiceResultOK;
  77. }
  78.  
  79. EVoiceResult DecompressVoice( void *pCompressed, uint32 cbCompressed, void *pDestBuffer, uint32 cbDestBufferSize, uint32 *nBytesWritten )
  80. {
  81. GApp.AddToLogFileA( "ISteamUser.log", "DecompressVoice" );
  82. return k_EVoiceResultOK;
  83. }
  84.  
  85. HAuthTicket GetAuthSessionTicket( void *pTicket, int cbMaxTicket, uint32 *pcbTicket )
  86. {
  87. GApp.AddToLogFileA( "ISteamUser.log", "GetAuthSessionTicket" );
  88. return 0;
  89. }
  90.  
  91. EBeginAuthSessionResult BeginAuthSession( const void *pAuthTicket, int cbAuthTicket, CSteamID steamID )
  92. {
  93. GApp.AddToLogFileA( "ISteamUser.log", "BeginAuthSession" );
  94. return k_EBeginAuthSessionResultOK;
  95. }
  96.  
  97. void EndAuthSession( CSteamID steamID )
  98. {
  99. GApp.AddToLogFileA( "ISteamUser.log", "EndAuthSession" );
  100. }
  101.  
  102. void CancelAuthTicket( HAuthTicket hAuthTicket )
  103. {
  104. GApp.AddToLogFileA( "ISteamUser.log", "CancelAuthTicket" );
  105. }
  106.  
  107. uint32 UserHasLicenseForApp( CSteamID steamID, AppId_t appID )
  108. {
  109. GApp.AddToLogFileA( "ISteamUser.log", "UserHasLicenseForApp" );
  110.  
  111. return 1;
  112. }
  113. };
  114.  
  115. //class CSteamUser012 : public ISteamUser012
  116. class CSteamRemoteStorage002 : public ISteamRemoteStorage002
  117. {
  118. public:
  119. bool FileWrite( const char *pchFile, const void *pvData, int32 cubData )
  120. {
  121. GApp.AddToLogFileA( "ISteamRemoteStorage.log", "FileWrite( %s )", pchFile );
  122.  
  123. return true;
  124. }
  125.  
  126. int32 GetFileSize( const char *pchFile )
  127. {
  128. GApp.AddToLogFileA( "ISteamRemoteStorage.log", "GetFileSize( %s )", pchFile );
  129.  
  130. //get file size of something? fuck nigger.
  131.  
  132. return 0;
  133. }
  134.  
  135. int32 FileRead( const char *pchFile, void *pvData, int32 cubDataToRead )
  136. {
  137. GApp.AddToLogFileA( "ISteamRemoteStorage.log", "FileRead( %s )", pchFile );
  138.  
  139. return 0;
  140. }
  141.  
  142. bool FileExists( const char *pchFile )
  143. {
  144. GApp.AddToLogFileA( "ISteamRemoteStorage.log", "FileExists( %s )", pchFile );
  145.  
  146. return false;
  147. }
  148.  
  149. int32 GetFileCount()
  150. {
  151. GApp.AddToLogFileA( "ISteamRemoteStorage.log", "GetFileCount" );
  152.  
  153. return 0;
  154. }
  155.  
  156. const char *GetFileNameAndSize( int iFile, int32 *pnFileSizeInBytes )
  157. {
  158. GApp.AddToLogFileA( "ISteamRemoteStorage.log", "GetFileNameAndSize" );
  159.  
  160. *pnFileSizeInBytes = 0;
  161.  
  162. return "";
  163. }
  164.  
  165. bool GetQuota( int32 *pnTotalBytes, int32 *puAvailableBytes )
  166. {
  167. GApp.AddToLogFileA( "ISteamRemoteStorage.log", "GetQuota" );
  168.  
  169. *pnTotalBytes = 0x10000000;
  170. *puAvailableBytes = 0x10000000;
  171.  
  172. return true;
  173. }
  174. };
  175.  
  176. class CSteamFriends005 : public ISteamFriends005
  177. {
  178. public:
  179. const char *GetPersonaName()
  180. {
  181. GApp.AddToLogFileA( "ISteamFriends005.log", "GetPersonaName" );
  182.  
  183. return "s0beit";
  184. }
  185.  
  186. void SetPersonaName( const char *pchPersonaName )
  187. {
  188. GApp.AddToLogFileA( "ISteamFriends005.log", "SetPersonaName( %s )", pchPersonaName );
  189. }
  190.  
  191. EPersonaState GetPersonaState()
  192. {
  193. GApp.AddToLogFileA( "ISteamFriends005.log", "GetPersonaState" );
  194.  
  195. return k_EPersonaStateOnline;
  196. }
  197.  
  198. int GetFriendCount( int iFriendFlags )
  199. {
  200. GApp.AddToLogFileA( "ISteamFriends005.log", "GetFriendCount" );
  201.  
  202. return 0;
  203. }
  204.  
  205. CSteamID GetFriendByIndex( int iFriend, int iFriendFlags )
  206. {
  207. GApp.AddToLogFileA( "ISteamFriends005.log", "GetFriendByIndex" );
  208.  
  209. return CSteamID();
  210. }
  211.  
  212. EFriendRelationship GetFriendRelationship( CSteamID steamIDFriend )
  213. {
  214. GApp.AddToLogFileA( "ISteamFriends005.log", "GetFriendRelationship" );
  215.  
  216. return k_EFriendRelationshipNone;
  217. }
  218.  
  219. EPersonaState GetFriendPersonaState( CSteamID steamIDFriend )
  220. {
  221. GApp.AddToLogFileA( "ISteamFriends005.log", "GetFriendPersonaState" );
  222.  
  223. return k_EPersonaStateOffline;
  224. }
  225.  
  226. const char *GetFriendPersonaName( CSteamID steamIDFriend )
  227. {
  228. GApp.AddToLogFileA( "ISteamFriends005.log", "GetFriendPersonaName" );
  229.  
  230. return "UnknownFriend";
  231. }
  232.  
  233. int GetFriendAvatar( CSteamID steamIDFriend, int eAvatarSize )
  234. {
  235. GApp.AddToLogFileA( "ISteamFriends005.log", "GetFriendAvatar" );
  236.  
  237. return 0;
  238. }
  239.  
  240. bool GetFriendGamePlayed( CSteamID steamIDFriend, FriendGameInfo_t *pFriendGameInfo )
  241. {
  242. GApp.AddToLogFileA( "ISteamFriends005.log", "GetFriendGamePlayed" );
  243.  
  244. return false;
  245. }
  246.  
  247. const char *GetFriendPersonaNameHistory( CSteamID steamIDFriend, int iPersonaName )
  248. {
  249. GApp.AddToLogFileA( "ISteamFriends005.log", "GetFriendPersonaNameHistory" );
  250.  
  251. return "";
  252. }
  253.  
  254. bool HasFriend( CSteamID steamIDFriend, int iFriendFlags )
  255. {
  256. GApp.AddToLogFileA( "ISteamFriends005.log", "HasFriend" );
  257.  
  258. return false;
  259. }
  260.  
  261. int GetClanCount()
  262. {
  263. GApp.AddToLogFileA( "ISteamFriends005.log", "GetClanCount" );
  264.  
  265. return 0;
  266. }
  267.  
  268. CSteamID GetClanByIndex( int iClan )
  269. {
  270. GApp.AddToLogFileA( "ISteamFriends005.log", "GetClanByIndex" );
  271.  
  272. return CSteamID();
  273. }
  274.  
  275. const char *GetClanName( CSteamID steamIDClan )
  276. {
  277. GApp.AddToLogFileA( "ISteamFriends005.log", "GetClanName" );
  278.  
  279. return "myg0t";
  280. }
  281.  
  282. int GetFriendCountFromSource( CSteamID steamIDSource )
  283. {
  284. GApp.AddToLogFileA( "ISteamFriends005.log", "GetFriendCountFromSource" );
  285.  
  286. return 0;
  287. }
  288.  
  289. CSteamID GetFriendFromSourceByIndex( CSteamID steamIDSource, int iFriend )
  290. {
  291. GApp.AddToLogFileA( "ISteamFriends005.log", "GetFriendFromSourceByIndex" );
  292.  
  293. return CSteamID();
  294. }
  295.  
  296. bool IsUserInSource( CSteamID steamIDUser, CSteamID steamIDSource )
  297. {
  298. GApp.AddToLogFileA( "ISteamFriends005.log", "IsUserInSource" );
  299.  
  300. return false;
  301. }
  302.  
  303. void SetInGameVoiceSpeaking( CSteamID steamIDUser, bool bSpeaking )
  304. {
  305. GApp.AddToLogFileA( "ISteamFriends005.log", "SetInGameVoiceSpeaking" );
  306. }
  307.  
  308. void ActivateGameOverlay( const char *pchDialog )
  309. {
  310. GApp.AddToLogFileA( "ISteamFriends005.log", "ActivateGameOverlay" );
  311. }
  312.  
  313. void ActivateGameOverlayToUser( const char *pchDialog, CSteamID steamID )
  314. {
  315. GApp.AddToLogFileA( "ISteamFriends005.log", "ActivateGameOverlayToUser" );
  316. }
  317.  
  318. void ActivateGameOverlayToWebPage( const char *pchURL )
  319. {
  320. GApp.AddToLogFileA( "ISteamFriends005.log", "ActivateGameOverlayToWebPage" );
  321. }
  322.  
  323. void ActivateGameOverlayToStore( AppId_t nAppID )
  324. {
  325. GApp.AddToLogFileA( "ISteamFriends005.log", "ActivateGameOverlayToStore" );
  326. }
  327. };
  328.  
  329. CSteamUser012* g_pSteamUserEmu = new CSteamUser012;
  330. CSteamRemoteStorage002* g_pSteamRemoteStorageEmu = new CSteamRemoteStorage002;
  331. CSteamFriends005* g_pSteamFriendsEmu = new CSteamFriends005;
  332.  
  333. extern "C"
  334. {
  335. __declspec(dllexport) HSteamPipe __cdecl GetHSteamPipe()
  336. {
  337. GApp.AddToLogFileA( "steam_emu.log", "GetHSteamPipe" );
  338.  
  339. return NULL;
  340. }
  341. __declspec(dllexport) HSteamUser __cdecl GetHSteamUser()
  342. {
  343. GApp.AddToLogFileA( "steam_emu.log", "GetHSteamUser" );
  344.  
  345. return NULL;
  346. }
  347. __declspec(dllexport) HSteamPipe __cdecl SteamAPI_GetHSteamPipe()
  348. {
  349. GApp.AddToLogFileA( "steam_emu.log", "SteamAPI_GetHSteamPipe" );
  350.  
  351. return NULL;
  352. }
  353. __declspec(dllexport) HSteamUser __cdecl SteamAPI_GetHSteamUser()
  354. {
  355. GApp.AddToLogFileA( "steam_emu.log", "SteamAPI_GetHSteamUser" );
  356.  
  357. return NULL;
  358. }
  359. __declspec(dllexport) const char *__cdecl SteamAPI_GetSteamInstallPath()
  360. {
  361. GApp.AddToLogFileA( "steam_emu.log", "SteamAPI_GetSteamInstallPath" );
  362.  
  363. return NULL;
  364. }
  365. __declspec(dllexport) bool __cdecl SteamAPI_Init()
  366. {
  367. GApp.AddToLogFileA( "steam_emu.log", "SteamAPI_Init" );
  368.  
  369. return true;
  370. }
  371. __declspec(dllexport) bool __cdecl SteamAPI_InitSafe()
  372. {
  373. GApp.AddToLogFileA( "steam_emu.log", "SteamAPI_InitSafe" );
  374.  
  375. return true;
  376. }
  377. __declspec(dllexport) void __cdecl SteamAPI_RegisterCallResult( CCallbackBase* pResult, SteamAPICall_t APICall )
  378. {
  379. GApp.AddToLogFileA( "steam_emu.log", "SteamAPI_RegisterCallResult" );
  380.  
  381. //
  382. }
  383. __declspec(dllexport) void __cdecl SteamAPI_RegisterCallback( CCallbackBase *pCallback, int iCallback )
  384. {
  385. g_Logging.AddToLogFileA( "steam_emu.log", "SteamAPI_RegisterCallback for call type %d", iCallback );
  386.  
  387. Callbacks::Register(pCallback, iCallback);
  388. //
  389. }
  390. __declspec(dllexport) void __cdecl SteamAPI_RunCallbacks()
  391. {
  392. GApp.AddToLogFileA( "steam_emu.log", "SteamAPI_RunCallbacks" );
  393.  
  394. //
  395. }
  396. __declspec(dllexport) void __cdecl SteamAPI_SetMiniDumpComment( const char *pchMsg )
  397. {
  398. GApp.AddToLogFileA( "steam_emu.log", "SteamAPI_SetMiniDumpComment" );
  399.  
  400. //
  401. }
  402. __declspec(dllexport) bool __cdecl SteamAPI_SetTryCatchCallbacks( bool bUnknown )
  403. {
  404. GApp.AddToLogFileA( "steam_emu.log", "SteamAPI_SetTryCatchCallbacks" );
  405.  
  406. return bUnknown;
  407. }
  408. __declspec(dllexport) void __cdecl SteamAPI_Shutdown()
  409. {
  410. GApp.AddToLogFileA( "steam_emu.log", "SteamAPI_Shutdown" );
  411.  
  412. //
  413. }
  414. __declspec(dllexport) void __cdecl SteamAPI_UnregisterCallResult( CCallbackBase* pResult, SteamAPICall_t APICall )
  415. {
  416. GApp.AddToLogFileA( "steam_emu.log", "SteamAPI_UnregisterCallResult" );
  417.  
  418. //
  419. }
  420. __declspec(dllexport) void __cdecl SteamAPI_UnregisterCallback( CCallbackBase *pCallback, int iCallback )
  421. {
  422. GApp.AddToLogFileA( "steam_emu.log", "SteamAPI_UnregisterCallback" );
  423.  
  424. //
  425. }
  426. __declspec(dllexport) void __cdecl SteamAPI_WriteMiniDump( uint32 uStructuredExceptionCode, void* pvExceptionInfo, uint32 uBuildID )
  427. {
  428. GApp.AddToLogFileA( "steam_emu.log", "SteamAPI_WriteMiniDump" );
  429.  
  430. //
  431. }
  432. __declspec(dllexport) void* __cdecl SteamApps()
  433. {
  434. GApp.AddToLogFileA( "steam_emu.log", "SteamApps" );
  435.  
  436. return NULL;
  437. }
  438. __declspec(dllexport) void* __cdecl SteamClient()
  439. {
  440. GApp.AddToLogFileA( "steam_emu.log", "SteamClient" );
  441.  
  442. return NULL;
  443. }
  444. __declspec(dllexport) void* __cdecl SteamContentServer()
  445. {
  446. GApp.AddToLogFileA( "steam_emu.log", "SteamContentServer" );
  447.  
  448. return NULL;
  449. }
  450. __declspec(dllexport) void* __cdecl SteamContentServerUtils()
  451. {
  452. GApp.AddToLogFileA( "steam_emu.log", "SteamContentServerUtils" );
  453.  
  454. return NULL;
  455. }
  456. __declspec(dllexport) bool __cdecl SteamContentServer_Init( unsigned int uLocalIP, unsigned short usPort )
  457. {
  458. GApp.AddToLogFileA( "steam_emu.log", "SteamContentServer_Init" );
  459.  
  460. return NULL;
  461. }
  462. __declspec(dllexport) void __cdecl SteamContentServer_RunCallbacks()
  463. {
  464. GApp.AddToLogFileA( "steam_emu.log", "SteamContentServer_RunCallbacks" );
  465.  
  466. //
  467. }
  468. __declspec(dllexport) void __cdecl SteamContentServer_Shutdown()
  469. {
  470. GApp.AddToLogFileA( "steam_emu.log", "SteamContentServer_Shutdown" );
  471.  
  472. //
  473. }
  474. __declspec(dllexport) void* __cdecl SteamFriends()
  475. {
  476. GApp.AddToLogFileA( "steam_emu.log", "SteamFriends" );
  477.  
  478. return g_pSteamFriendsEmu;
  479. }
  480. __declspec(dllexport) void* __cdecl SteamGameServer()
  481. {
  482. GApp.AddToLogFileA( "steam_emu.log", "SteamGameServer" );
  483.  
  484. return NULL;
  485. }
  486. __declspec(dllexport) void* __cdecl SteamGameServerUtils()
  487. {
  488. GApp.AddToLogFileA( "steam_emu.log", "SteamGameServerUtils" );
  489.  
  490. return NULL;
  491. }
  492. __declspec(dllexport) bool __cdecl SteamGameServer_BSecure()
  493. {
  494. GApp.AddToLogFileA( "steam_emu.log", "SteamGameServer_BSecure" );
  495.  
  496. return true;
  497. }
  498. __declspec(dllexport) HSteamPipe __cdecl SteamGameServer_GetHSteamPipe()
  499. {
  500. GApp.AddToLogFileA( "steam_emu.log", "SteamGameServer_GetHSteamPipe" );
  501.  
  502. return NULL;
  503. }
  504. __declspec(dllexport) HSteamUser __cdecl SteamGameServer_GetHSteamUser()
  505. {
  506. GApp.AddToLogFileA( "steam_emu.log", "SteamGameServer_GetHSteamUser" );
  507.  
  508. return NULL;
  509. }
  510. __declspec(dllexport) int32 __cdecl SteamGameServer_GetIPCCallCount()
  511. {
  512. GApp.AddToLogFileA( "steam_emu.log", "SteamGameServer_GetIPCCallCount" );
  513.  
  514. return NULL;
  515. }
  516. __declspec(dllexport) uint64 __cdecl SteamGameServer_GetSteamID()
  517. {
  518. GApp.AddToLogFileA( "steam_emu.log", "SteamGameServer_GetSteamID" );
  519.  
  520. return NULL;
  521. }
  522. __declspec(dllexport) bool __cdecl SteamGameServer_Init( uint32 unIP, uint16 usPort, uint16 usGamePort, EServerMode eServerMode, int nGameAppId, const char *pchGameDir, const char *pchVersionString )
  523. {
  524. GApp.AddToLogFileA( "steam_emu.log", "SteamGameServer_Init" );
  525.  
  526. return true;
  527. }
  528. __declspec(dllexport) bool __cdecl SteamGameServer_InitSafe( uint32 unIP, uint16 usPort, uint16 usGamePort, EServerMode eServerMode, int nGameAppId, const char *pchGameDir, const char *pchVersionString, unsigned long dongs )
  529. {
  530. GApp.AddToLogFileA( "steam_emu.log", "SteamGameServer_InitSafe" );
  531.  
  532. return true;
  533. }
  534. __declspec(dllexport) void __cdecl SteamGameServer_RunCallbacks()
  535. {
  536. GApp.AddToLogFileA( "steam_emu.log", "SteamGameServer_RunCallbacks" );
  537.  
  538. //
  539. }
  540. __declspec(dllexport) void __cdecl SteamGameServer_Shutdown()
  541. {
  542. GApp.AddToLogFileA( "steam_emu.log", "SteamGameServer_Shutdown" );
  543.  
  544. //
  545. }
  546. __declspec(dllexport) void* __cdecl SteamMasterServerUpdater()
  547. {
  548. GApp.AddToLogFileA( "steam_emu.log", "SteamMasterServerUpdater" );
  549.  
  550. return NULL;
  551. }
  552. __declspec(dllexport) void* __cdecl SteamMatchmaking()
  553. {
  554. GApp.AddToLogFileA( "steam_emu.log", "SteamMatchmaking" );
  555.  
  556. return NULL;
  557. }
  558. __declspec(dllexport) void* __cdecl SteamMatchmakingServers()
  559. {
  560. GApp.AddToLogFileA( "steam_emu.log", "SteamMatchmakingServers" );
  561.  
  562. return NULL;
  563. }
  564. __declspec(dllexport) void* __cdecl SteamNetworking()
  565. {
  566. GApp.AddToLogFileA( "steam_emu.log", "SteamNetworking" );
  567.  
  568. return NULL;
  569. }
  570. __declspec(dllexport) void* __cdecl SteamRemoteStorage()
  571. {
  572. GApp.AddToLogFileA( "steam_emu.log", "SteamRemoteStorage" );
  573.  
  574. return g_pSteamRemoteStorageEmu;
  575. }
  576. __declspec(dllexport) void* __cdecl SteamUser()
  577. {
  578. GApp.AddToLogFileA( "steam_emu.log", "SteamUser" );
  579.  
  580. return g_pSteamUserEmu;
  581. }
  582. __declspec(dllexport) void* __cdecl SteamUserStats()
  583. {
  584. GApp.AddToLogFileA( "steam_emu.log", "SteamUserStats" );
  585.  
  586. return NULL;
  587. }
  588. __declspec(dllexport) void* __cdecl SteamUtils()
  589. {
  590. GApp.AddToLogFileA( "steam_emu.log", "SteamUtils" );
  591.  
  592. return NULL;
  593. }
  594. __declspec(dllexport) HSteamUser __cdecl Steam_GetHSteamUserCurrent()
  595. {
  596. GApp.AddToLogFileA( "steam_emu.log", "Steam_GetHSteamUserCurrent" );
  597.  
  598. return NULL;
  599. }
  600. __declspec(dllexport) void __cdecl Steam_RegisterInterfaceFuncs( void *hModule )
  601. {
  602. GApp.AddToLogFileA( "steam_emu.log", "Steam_RegisterInterfaceFuncs" );
  603.  
  604. //
  605. }
  606. __declspec(dllexport) void __cdecl Steam_RunCallbacks( HSteamPipe hSteamPipe, bool bGameServerCallbacks )
  607. {
  608. GApp.AddToLogFileA( "steam_emu.log", "Steam_RunCallbacks" );
  609.  
  610. //
  611. }
  612. __declspec(dllexport) void *g_pSteamClientGameServer = NULL;
  613. }
  614.  
  615. BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
  616. {
  617. if( ul_reason_for_call == DLL_PROCESS_ATTACH )
  618. {
  619. GApp.BaseUponModule( hModule );
  620. GApp.AddToLogFileA( "steam_emu.log", "Attached to process!" );
  621. }
  622.  
  623. return TRUE;
  624. }
Advertisement
Add Comment
Please, Sign In to add comment