Match EnumerateCallback

This commit is contained in:
Christian Semmler 2024-01-02 14:57:30 -05:00
parent afe537b99e
commit 7d4e94abd6
No known key found for this signature in database
GPG key ID: 086DAA1360BEEE5C
2 changed files with 6 additions and 6 deletions

View file

@ -151,7 +151,7 @@ MxDeviceEnumerate::MxDeviceEnumerate()
} }
// STUB: LEGO1 0x1009c070 // STUB: LEGO1 0x1009c070
BOOL MxDeviceEnumerate::FUN_1009c070() BOOL MxDeviceEnumerate::EnumDirectDrawCallback(GUID FAR* p_guid, LPSTR p_driverName, LPSTR p_driverDesc)
{ {
// TODO // TODO
// HRESULT ret = DirectDrawCreate(); // HRESULT ret = DirectDrawCreate();
@ -192,11 +192,11 @@ MxResult MxDeviceEnumerate::DoEnumerate()
return SUCCESS; return SUCCESS;
} }
// STUB: LEGO1 0x1009c710 // FUNCTION: LEGO1 0x1009c710
BOOL CALLBACK EnumerateCallback(GUID FAR*, LPSTR, LPSTR, LPVOID) BOOL CALLBACK EnumerateCallback(GUID FAR* p_guid, LPSTR p_driverName, LPSTR p_driverDesc, LPVOID p_context)
{ {
// TODO MxDeviceEnumerate* deviceEnumerate = (MxDeviceEnumerate*) p_context;
return FALSE; return deviceEnumerate->EnumDirectDrawCallback(p_guid, p_driverName, p_driverDesc);
} }
// STUB: LEGO1 0x1009c730 // STUB: LEGO1 0x1009c730

View file

@ -73,7 +73,7 @@ public:
virtual MxResult DoEnumerate(); // vtable+0x00 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); const char* EnumerateErrorToString(HRESULT p_error);
MxS32 ParseDeviceName(const char* p_deviceId); MxS32 ParseDeviceName(const char* p_deviceId);
MxResult FUN_1009d030(MxS32 p_und1, undefined** p_und2, undefined** p_und3); MxResult FUN_1009d030(MxS32 p_und1, undefined** p_und2, undefined** p_und3);