mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-07-29 16:41:53 +03:00
steam_helper: Create Valve_SteamIPC_Class event.
For 2K Launcher. CW-Bug-Id: 18912
This commit is contained in:
parent
bc1f80d288
commit
c1e10f617c
@ -1057,6 +1057,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;
|
||||
|
||||
@ -1070,6 +1071,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();
|
||||
@ -1111,6 +1115,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (event != INVALID_HANDLE_VALUE)
|
||||
CloseHandle(event);
|
||||
|
||||
if (event2 != INVALID_HANDLE_VALUE)
|
||||
CloseHandle(event2);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user