Hello,
ModSDK doesn't contain a complete CryGame source code. Crytek removed some stuff from there. For example, the whole startup code, mod loader, WindowProc (yes, it's in CryGame for some strange reason).
To fix the problem, open Menus/OptionsManager.cpp and add the following into the empty COptionsManager::SetCrysisProfileColor function:
// DllMain.cpp
extern void* g_hInst;
HCURSOR cursor = LoadCursorA(g_hInst, MAKEINTRESOURCEA(IDC_CURSOR1));
if (cursor)
{
HWND window = static_cast<HWND>(gEnv->pRenderer->GetHWND());
SetClassLongPtrA(window, GCLP_HCURSOR, reinterpret_cast<LONG_PTR>(cursor));
SetCursor(cursor);
}
Also don't forget to include the evil <windows.h> and "resource.h", which contains IDC_CURSOR1.
❤️ 0