Merge branch 'render_dllexport' of lybxlpsv/PD-Loader into master

This commit is contained in:
somewhatlurker
2019-09-02 04:31:39 +00:00
committed by Gogs
@@ -171,6 +171,17 @@ __int64 __fastcall hookedEngineUpdateLight(__int64 a1)
return result;
}
extern "C" __declspec(dllexport) int getFramerateLimit(void)
{
return nFpsLimit;
}
extern "C" __declspec(dllexport) void setFramerateLimit(int framerate)
{
nFpsLimit = framerate;
expectedFrameDuration = nanoseconds(1000000000 / nFpsLimit);
return;
}
BOOL APIENTRY DllMain(HMODULE hModule,
DWORD ul_reason_for_call,