mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-13 15:18:13 +03:00
parent
d4deb0943a
commit
e1554d408b
@ -99,7 +99,7 @@ static void set_active_process_pid(void)
|
||||
RegSetKeyValueA(HKEY_CURRENT_USER, "Software\\Valve\\Steam\\ActiveProcess", "pid", REG_DWORD, &pid, sizeof(pid));
|
||||
}
|
||||
|
||||
static DWORD WINAPI create_steam_window(void *arg)
|
||||
static DWORD WINAPI create_steam_windows(void *arg)
|
||||
{
|
||||
static WNDCLASSEXW wndclass = { sizeof(WNDCLASSEXW) };
|
||||
static const WCHAR class_nameW[] = {'v','g','u','i','P','o','p','u','p','W','i','n','d','o','w',0};
|
||||
@ -112,6 +112,7 @@ static DWORD WINAPI create_steam_window(void *arg)
|
||||
RegisterClassExW(&wndclass);
|
||||
CreateWindowW(class_nameW, steamW, WS_POPUP, 40, 40,
|
||||
400, 300, NULL, NULL, NULL, NULL);
|
||||
CreateWindowA("static", "SteamVR Status", WS_POPUP, 0, 0, 0, 0, NULL, NULL, NULL, NULL);
|
||||
|
||||
while (GetMessageW(&msg, NULL, 0, 0))
|
||||
{
|
||||
@ -1736,7 +1737,7 @@ int main(int argc, char *argv[])
|
||||
/* For 2K Launcher. */
|
||||
event2 = CreateEventA(NULL, FALSE, FALSE, "Global\\Valve_SteamIPC_Class");
|
||||
|
||||
CreateThread(NULL, 0, create_steam_window, NULL, 0, NULL);
|
||||
CreateThread(NULL, 0, create_steam_windows, NULL, 0, NULL);
|
||||
|
||||
set_active_process_pid();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user