Skip to content

Commit

Permalink
ntdll: HACK: Enable WINE_SIMULATE_WRITECOPY for Battle.net.exe.
Browse files Browse the repository at this point in the history
CW-Bug-Id: #23074
  • Loading branch information
Paul Gofman committed Dec 1, 2023
1 parent 55debe8 commit 2ad0c4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dlls/ntdll/unix/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -2358,7 +2358,10 @@ static void hacks_init(void)

env_str = getenv("WINE_SIMULATE_WRITECOPY");
if (env_str) simulate_writecopy = atoi(env_str);
else if (main_argc > 1 && strstr(main_argv[1], "UplayWebCore.exe")) simulate_writecopy = TRUE;
else if (main_argc > 1 &&
(strstr(main_argv[1], "UplayWebCore.exe")
|| (strstr(main_argv[1], "Battle.net.exe"))))
simulate_writecopy = TRUE;
else if (sgi) simulate_writecopy = !strcmp(sgi, "1608730") /* Dawn of Corruption */
|| !strcmp(sgi, "1680700") /* Purgo box */
|| !strcmp(sgi, "2095300") /* Breakout 13 */
Expand Down

0 comments on commit 2ad0c4e

Please sign in to comment.