steam_helper: Create Valve_SteamIPC_Class event.

For 2K Launcher.

CW-Bug-Id: 18912
This commit is contained in:
Paul Gofman 2021-05-10 14:57:57 +03:00 committed by Andrew Eikum
parent 301e733bbf
commit 016fb2fc76

View File

@ -1063,6 +1063,7 @@ static BOOL steam_protocol_handler(int argc, char *argv[])
int main(int argc, char *argv[])
{
HANDLE wait_handle = INVALID_HANDLE_VALUE;
HANDLE event2 = INVALID_HANDLE_VALUE;
HANDLE event = INVALID_HANDLE_VALUE;
BOOL game_process = FALSE;
@ -1076,6 +1077,9 @@ int main(int argc, char *argv[])
/* do setup only for game process */
event = CreateEventA(NULL, FALSE, FALSE, "Steam3Master_SharedMemLock");
/* For 2K Launcher. */
event2 = CreateEventA(NULL, FALSE, FALSE, "Global\\Valve_SteamIPC_Class");
CreateThread(NULL, 0, create_steam_window, NULL, 0, NULL);
set_active_process_pid();
@ -1117,6 +1121,7 @@ int main(int argc, char *argv[])
if (event != INVALID_HANDLE_VALUE)
CloseHandle(event);
if (event2 != INVALID_HANDLE_VALUE)
CloseHandle(event2);
return 0;
}