diff --git a/LEGO1/mxdirect3d.cpp b/LEGO1/mxdirect3d.cpp index 619dbcb6..0ee2c501 100644 --- a/LEGO1/mxdirect3d.cpp +++ b/LEGO1/mxdirect3d.cpp @@ -151,7 +151,7 @@ MxDeviceEnumerate::MxDeviceEnumerate() } // STUB: LEGO1 0x1009c070 -BOOL MxDeviceEnumerate::FUN_1009c070() +BOOL MxDeviceEnumerate::EnumDirectDrawCallback(GUID FAR* p_guid, LPSTR p_driverName, LPSTR p_driverDesc) { // TODO // HRESULT ret = DirectDrawCreate(); @@ -192,11 +192,11 @@ MxResult MxDeviceEnumerate::DoEnumerate() return SUCCESS; } -// STUB: LEGO1 0x1009c710 -BOOL CALLBACK EnumerateCallback(GUID FAR*, LPSTR, LPSTR, LPVOID) +// FUNCTION: LEGO1 0x1009c710 +BOOL CALLBACK EnumerateCallback(GUID FAR* p_guid, LPSTR p_driverName, LPSTR p_driverDesc, LPVOID p_context) { - // TODO - return FALSE; + MxDeviceEnumerate* deviceEnumerate = (MxDeviceEnumerate*) p_context; + return deviceEnumerate->EnumDirectDrawCallback(p_guid, p_driverName, p_driverDesc); } // STUB: LEGO1 0x1009c730 diff --git a/LEGO1/mxdirect3d.h b/LEGO1/mxdirect3d.h index d22b3873..67cf1420 100644 --- a/LEGO1/mxdirect3d.h +++ b/LEGO1/mxdirect3d.h @@ -73,7 +73,7 @@ class MxDeviceEnumerate { virtual MxResult DoEnumerate(); // vtable+0x00 - BOOL FUN_1009c070(); + BOOL EnumDirectDrawCallback(GUID FAR* p_guid, LPSTR p_driverName, LPSTR p_driverDesc); const char* EnumerateErrorToString(HRESULT p_error); MxS32 ParseDeviceName(const char* p_deviceId); MxResult FUN_1009d030(MxS32 p_und1, undefined** p_und2, undefined** p_und3);