Update src/core.c

This commit is contained in:
IoI_xD 2026-08-09 15:32:56 +09:00
commit ca41b5936b

View file

@ -1095,9 +1095,10 @@ int MwLibraryInit(void) {
However, uhh, Visual Studio 2022. For some fucking reason.
Thanks for coming to my TED Talk.
*/
char * winmmPathFull = NULL;
char winmmPath[MAX_PATH] = {0};
GetSystemDirectory(winmmPath, MAX_PATH);
strcat_s(winmmPath, MAX_PATH, "\\winmm.dll");
winmmPathFull = MwStringConcat(winmmPath, "\\winmm.dll");
MwLL_winmmLib = LoadLibraryA(winmmPath);
MwLL_PFN_timeGetTime = (void *)GetProcAddress(MwLL_winmmLib, "timeGetTime");
MwLL_PFN_timeBeginPeriod = (void *)GetProcAddress(MwLL_winmmLib, "timeBeginPeriod");