diff --git a/CMakeLists.txt b/CMakeLists.txt index e3b28ec6..3485f285 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -190,6 +190,7 @@ if (ISLE_USE_SMARTHEAP) target_link_libraries(lego1 PRIVATE SmartHeap::SmartHeap) endif() +target_include_directories(lego1 PRIVATE "dx5sdk/inc") # Link libraries target_link_libraries(lego1 PRIVATE ddraw dsound winmm "${CMAKE_SOURCE_DIR}/dx5sdk/lib/dinput.lib" "${CMAKE_SOURCE_DIR}/dx5sdk/lib/dxguid.lib") diff --git a/LEGO1/legoinputmanager.cpp b/LEGO1/legoinputmanager.cpp index bfc0c4df..026037db 100644 --- a/LEGO1/legoinputmanager.cpp +++ b/LEGO1/legoinputmanager.cpp @@ -2,6 +2,7 @@ #include "decomp.h" #include "legoomni.h" +#include "mxautolocker.h" //DECOMP_SIZE_ASSERT(LegoInputManager, 0x338); // 0x10059085 @@ -47,7 +48,7 @@ void LegoInputManager::QueueEvent(NotificationId id, unsigned char p2, MxLong p3 // OFFSET: LEGO1 0x1005c470 STUB void LegoInputManager::Register(MxCore *) { - // TODO + MxAutoLocker* autolocker = new MxAutoLocker(&m_criticalsection); } // OFFSET: LEGO1 0x1005c5c0 STUB @@ -67,7 +68,7 @@ void LegoInputManager::UnRegister(MxCore *) void LegoInputManager::Destroy() { ReleaseDX(); - + // `scalar_deleting_destructor' if (m_unknown_classptr68 != NULL) delete[] m_unknown_classptr68; if (m_controlManager != NULL) delete[] m_controlManager; return;