forked from pyrite-dev/milsko
Update src/core.c
This commit is contained in:
parent
f652523963
commit
ca41b5936b
1 changed files with 2 additions and 1 deletions
|
|
@ -1095,9 +1095,10 @@ int MwLibraryInit(void) {
|
||||||
However, uhh, Visual Studio 2022. For some fucking reason.
|
However, uhh, Visual Studio 2022. For some fucking reason.
|
||||||
Thanks for coming to my TED Talk.
|
Thanks for coming to my TED Talk.
|
||||||
*/
|
*/
|
||||||
|
char * winmmPathFull = NULL;
|
||||||
char winmmPath[MAX_PATH] = {0};
|
char winmmPath[MAX_PATH] = {0};
|
||||||
GetSystemDirectory(winmmPath, MAX_PATH);
|
GetSystemDirectory(winmmPath, MAX_PATH);
|
||||||
strcat_s(winmmPath, MAX_PATH, "\\winmm.dll");
|
winmmPathFull = MwStringConcat(winmmPath, "\\winmm.dll");
|
||||||
MwLL_winmmLib = LoadLibraryA(winmmPath);
|
MwLL_winmmLib = LoadLibraryA(winmmPath);
|
||||||
MwLL_PFN_timeGetTime = (void *)GetProcAddress(MwLL_winmmLib, "timeGetTime");
|
MwLL_PFN_timeGetTime = (void *)GetProcAddress(MwLL_winmmLib, "timeGetTime");
|
||||||
MwLL_PFN_timeBeginPeriod = (void *)GetProcAddress(MwLL_winmmLib, "timeBeginPeriod");
|
MwLL_PFN_timeBeginPeriod = (void *)GetProcAddress(MwLL_winmmLib, "timeBeginPeriod");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue