mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
Common: Create HRWrap
HRWrap now allows HRESULT to be formatted, giving useful information beyond "it failed" or a hex code that isn't obvious to most users. This commit does not add any uses of it, though.
This commit is contained in:
@ -164,7 +164,7 @@ elseif(WIN32)
|
||||
winmm.lib
|
||||
)
|
||||
if (_M_X86_64)
|
||||
target_link_libraries(common PRIVATE opengl32.lib)
|
||||
target_link_libraries(common PRIVATE opengl32.lib)
|
||||
endif()
|
||||
elseif (ANDROID)
|
||||
target_link_libraries(common
|
||||
@ -286,6 +286,10 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
target_link_libraries(common PUBLIC dl rt)
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
target_sources(common PUBLIC HRWrap.h HRWrap.cpp)
|
||||
endif()
|
||||
|
||||
if(USE_UPNP)
|
||||
target_link_libraries(common PRIVATE Miniupnpc::miniupnpc)
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user