mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 23:25:50 +03:00
steam_helper: Create Valve_SteamIPC_Class event.
For 2K Launcher. CW-Bug-Id: 18912
This commit is contained in:
parent
301e733bbf
commit
016fb2fc76
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user