camhook: Fix cameras not being auto-detected sometimes on older machines

MFStartup needs to be called before any MF functions are used (such as for auto detect)
This commit is contained in:
Will Xyen
2019-12-10 15:23:53 -05:00
parent bf3d543893
commit b1329d10bf
4 changed files with 27 additions and 3 deletions

View File

@@ -140,6 +140,10 @@ static bool my_dll_entry_main(void)
result = app_hook_invoke_main();
if (!config_cam.disable_emu) {
camhook_fini();
}
if (!config_io.disable_card_reader_emu) {
log_misc("Shutting down card reader backend");
eam_io_fini();