mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Force plugins to use version appropriate Qt Network
Make building against either Qt5 or Qt6 easier by checking the Qt version used and loading the appropriate Qt Network DLL.
This commit is contained in:
parent
513bcb8e35
commit
37971e7bf9
|
@ -1746,10 +1746,14 @@ void OBSBasic::OBSInit()
|
|||
InitOBSCallbacks();
|
||||
InitHotkeys();
|
||||
|
||||
/* hack to prevent elgato from loading its own Qt5Network that it tries
|
||||
/* hack to prevent elgato from loading its own QtNetwork that it tries
|
||||
* to ship with */
|
||||
#if defined(_WIN32) && !defined(_DEBUG)
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
LoadLibraryW(L"Qt5Network");
|
||||
#else
|
||||
LoadLibraryW(L"Qt6Network");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
AddExtraModulePaths();
|
||||
|
|
Loading…
Reference in a new issue