Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CopyFile(SourceDLLName, TempDLLName, FALSE);
- Result.GameCodeDLL = LoadLibraryA(TempDLLName);
- DWORD Error = GetLastError();
- if(Result.GameCodeDLL)
- {
- Result.GameUpdateAndRender = (game_update_and_render *)
- GetProcAddress(Result.GameCodeDLL, "GameUpdateAndRender");
- Result.GameGenerateAudioSamples = (game_generate_audio_samples *)
- GetProcAddress(Result.GameCodeDLL, "GameGenerateAudioSamples");
- Result.IsValid = Result.GameUpdateAndRender && Result.GameGenerateAudioSamples;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement