mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-06-02 08:47:49 +03:00
parent
3058cb6c80
commit
5c4a530164
@ -69,7 +69,7 @@ static void set_active_process_pid(void)
|
|||||||
REG_DWORD, &pid, sizeof(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 WNDCLASSEXW wndclass = { sizeof(WNDCLASSEXW) };
|
||||||
MSG msg;
|
MSG msg;
|
||||||
@ -79,6 +79,7 @@ static DWORD WINAPI create_steam_window(void *arg)
|
|||||||
|
|
||||||
RegisterClassExW(&wndclass);
|
RegisterClassExW(&wndclass);
|
||||||
CreateWindowW( wndclass.lpszClassName, L"Steam", WS_POPUP, 40, 40, 400, 300, NULL, NULL, NULL, NULL );
|
CreateWindowW( wndclass.lpszClassName, L"Steam", 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))
|
while (GetMessageW(&msg, NULL, 0, 0))
|
||||||
{
|
{
|
||||||
@ -802,7 +803,7 @@ int main(int argc, char *argv[])
|
|||||||
/* For 2K Launcher. */
|
/* For 2K Launcher. */
|
||||||
event2 = CreateEventW( NULL, FALSE, FALSE, L"Global\\Valve_SteamIPC_Class" );
|
event2 = CreateEventW( NULL, FALSE, FALSE, L"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();
|
set_active_process_pid();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user