mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
Remove the mfplat.dll hard dependency (now dynamic).
This commit is contained in:
1 parent
de655aa92a
commit
d2c2ee337e
10 files changed
+191
-167
No files matched your search
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user