watcom opengl fix
Some checks are pending
pyrite-dev/milsko/pipeline/head Build started...

This commit is contained in:
Nishi 2026-08-10 04:32:44 +09:00
commit ca9a24a2b0
4 changed files with 4 additions and 8 deletions

View file

@ -1095,11 +1095,7 @@ 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);
winmmPathFull = MwStringConcat(winmmPath, "\\winmm.dll");
MwLL_winmmLib = LoadLibraryA(winmmPath);
MwLL_winmmLib = LoadLibrary("winmm.dll");
MwLL_PFN_timeGetTime = (void *)GetProcAddress(MwLL_winmmLib, "timeGetTime");
MwLL_PFN_timeBeginPeriod = (void *)GetProcAddress(MwLL_winmmLib, "timeBeginPeriod");