render: add framerate dllexports for other plugins to access.
This commit is contained in:
@@ -171,6 +171,17 @@ __int64 __fastcall hookedEngineUpdateLight(__int64 a1)
|
||||
return result;
|
||||
}
|
||||
|
||||
extern "C" __declspec(dllexport) int getFramerate(void)
|
||||
{
|
||||
return nFpsLimit;
|
||||
}
|
||||
|
||||
extern "C" __declspec(dllexport) void setFramerate(int framerate)
|
||||
{
|
||||
nFpsLimit = framerate;
|
||||
expectedFrameDuration = nanoseconds(1000000000 / nFpsLimit);
|
||||
return;
|
||||
}
|
||||
|
||||
BOOL APIENTRY DllMain(HMODULE hModule,
|
||||
DWORD ul_reason_for_call,
|
||||
|
||||
Reference in New Issue
Block a user