Skip to content

Commit 5257bb9

Browse files
Paul Gofmanivyl
authored andcommitted
ntdll: HACK: Also simulate async file read and IO cancellation for Immortals Fenyx Rising.
CW-Bug-Id: #21711
1 parent b7846b1 commit 5257bb9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

dlls/ntdll/unix/loader.c

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,15 +2310,18 @@ BOOL simulate_writecopy;
23102310
static void hacks_init(void)
23112311
{
23122312
static const char upc_exe[] = "Ubisoft Game Launcher\\upc.exe";
2313-
static const char ac_odyssey_exe[] = "ACOdyssey.exe";
23142313
const char *env_str, *sgi;
23152314

2316-
if (main_argc > 1 && strstr(main_argv[1], ac_odyssey_exe))
2317-
{
2318-
ERR("HACK: AC Odyssey sync tweak on.\n");
2315+
2316+
env_str = getenv("WINE_SIMULATE_ASYNC_READ");
2317+
if (env_str)
2318+
ac_odyssey = !!atoi(env_str);
2319+
else if (main_argc > 1 && (strstr(main_argv[1], "ACOdyssey.exe") || strstr(main_argv[1], "ImmortalsFenyxRising.exe")))
23192320
ac_odyssey = TRUE;
2320-
return;
2321-
}
2321+
2322+
if (ac_odyssey)
2323+
ERR("HACK: AC Odyssey sync tweak on.\n");
2324+
23222325
env_str = getenv("WINE_FSYNC_SIMULATE_SCHED_QUANTUM");
23232326
if (env_str)
23242327
fsync_simulate_sched_quantum = !!atoi(env_str);

0 commit comments

Comments
 (0)