misc: fix foreground window issues, enable by default

This commit is contained in:
Dniel97
2026-01-09 15:36:10 +01:00
parent a2bfd840d6
commit 2475b48ef3
6 changed files with 4 additions and 6 deletions

View File

@@ -92,7 +92,7 @@ void io4_config_load(struct io4_config *cfg, const wchar_t *filename)
assert(filename != NULL);
cfg->enable = GetPrivateProfileIntW(L"io4", L"enable", 1, filename);
cfg->foreground_only = GetPrivateProfileIntW(L"io4", L"foreground", 0, filename);
cfg->foreground_only = GetPrivateProfileIntW(L"io4", L"foreground", 1, filename);
}
void vfd_config_load(struct vfd_config *cfg, const wchar_t *filename)

View File

@@ -3,7 +3,6 @@
#include <windows.h>
#include <stdbool.h>
#include <stddef.h>
#define EWF_MAX_VIRTUAL_FILES 255
#define EWF_DEFAULT_FILE_BUFFER_SIZE 1024

View File

@@ -4,7 +4,6 @@ platform_lib = static_library(
implicit_include_directories : false,
dependencies : [
capnhook.get_variable('hook_dep'),
capnhook.get_variable('hooklib_dep'),
shlwapi_lib,
bcrypt_lib,
],

View File

@@ -2,7 +2,7 @@
#include <windows.h>
#include "ewf.h"
#include "platform/ewf.h"
#include "platform/amvideo.h"
#include "platform/clock.h"
#include "platform/dns.h"

View File

@@ -43,7 +43,7 @@ HRESULT idac_io4_hook_init(const struct io4_config* cfg) {
assert(idac_dll.init != NULL);
hr = io4_hook_init(cfg, &idac_io4_ops, NULL, L"GameProject", false);
hr = io4_hook_init(cfg, &idac_io4_ops, NULL, L"GameProject", true);
if (FAILED(hr)) {
return hr;

View File

@@ -32,7 +32,7 @@ HRESULT swdc_io4_hook_init(const struct io4_config* cfg) {
assert(swdc_dll.init != NULL);
hr = io4_hook_init(cfg, &swdc_io4_ops, NULL, L"Todoroki", false);
hr = io4_hook_init(cfg, &swdc_io4_ops, NULL, L"Todoroki", true);
if (FAILED(hr)) {
return hr;