Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. CopyFile(SourceDLLName, TempDLLName, FALSE);
  2.  
  3. Result.GameCodeDLL = LoadLibraryA(TempDLLName);
  4.  
  5. DWORD Error = GetLastError();
  6.  
  7. if(Result.GameCodeDLL)
  8. {
  9. Result.GameUpdateAndRender = (game_update_and_render *)
  10. GetProcAddress(Result.GameCodeDLL, "GameUpdateAndRender");
  11.  
  12. Result.GameGenerateAudioSamples = (game_generate_audio_samples *)
  13. GetProcAddress(Result.GameCodeDLL, "GameGenerateAudioSamples");
  14.  
  15.  
  16. Result.IsValid = Result.GameUpdateAndRender && Result.GameGenerateAudioSamples;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement