Remove the mfplat.dll hard dependency (now dynamic).

This commit is contained in:
Henrik Rydgård committed 2026-05-11 16:09:22 +02:00
1 parent de655aa92a
commit d2c2ee337e
10 files changed
+191 -167

No files matched your search

+10
View File
@@ -68,6 +68,7 @@
#include "Windows/resource.h"
#include "Windows/InputDevice.h"
#include "Windows/MainWindow.h"
#include "Windows/CaptureDevice.h"
#include "Windows/Debugger/Debugger_Disasm.h"
#include "Windows/Debugger/Debugger_MemoryDlg.h"
#include "Windows/Debugger/Debugger_VFPUDlg.h"
@@ -1171,6 +1172,13 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
g_logManager.SetAllLogLevels(LogLevel::LDEBUG);
}
// Media foundation
if (!RegisterCMPTMFApis()) {
ERROR_LOG(Log::System, "Failed to load Media Foundation functions");
// Let's unregister again.
UnRegisterCMPTMFApis();
}
ContextMenuInit(_hInstance);
MainWindow::Init(_hInstance);
MainWindow::Show(_hInstance);
@@ -1252,6 +1260,8 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
DialogManager::DestroyAll();
timeEndPeriod(1);
UnRegisterCMPTMFApis();
g_logManager.Shutdown();
WinMainCleanup();