Skip to content

Commit

Permalink
proton-tkg: Add the patch to hide the "updating prefix" window as opt…
Browse files Browse the repository at this point in the history
…ional userpatch.
  • Loading branch information
Tk-Glitch committed Mar 30, 2019
1 parent a07d8cb commit c16fe57
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
2 changes: 1 addition & 1 deletion proton-tkg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ You can also change their default values before building in your `proton-tkg.cfg

- Dinput SDL support is missing for lazyness reasons.

- In the userpatches folder, you'll find two patches I decided against merging in the master patch for proton-tkg. You can put them in wine-tkg-git userpatches dir if you want to use them. They might not apply cleanly on older wine bases.
- In the userpatches folder, you'll find three patches I decided against merging in the master patch for proton-tkg. You can put them in wine-tkg-git userpatches dir if you want to use them. They might not apply cleanly on older wine bases.

- Proton-tkg builds will get installed in `~/.steam/root/compatibilitytools.d` directory. If you want to uninstall a build, just delete its folder there and restart Steam. **MAKE SURE NO STEAM GAME IS CURRENTLY SET TO USE THAT SPECIFIC VERSION BEFORE DELETION**
48 changes: 48 additions & 0 deletions proton-tkg/userpatches/hide-prefix-update-window.mypatch
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
From 4208548dbb789b3f3bd112a4dc1a19ebf0d1f307 Mon Sep 17 00:00:00 2001
From: Andrew Eikum <[email protected]>
Date: Mon, 22 Jan 2018 14:35:51 -0600
Subject: [PATCH] HACK: wineboot: Don't show "updating prefix" window

---
programs/wineboot/wineboot.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c
index b85a3b6b6ea..6dfc797313e 100644
--- a/programs/wineboot/wineboot.c
+++ b/programs/wineboot/wineboot.c
@@ -1035,6 +1035,7 @@ static INT_PTR CALLBACK wait_dlgproc( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp
return 0;
}

+/*
static HWND show_wait_window(void)
{
const char *config_dir = wine_get_config_dir();
@@ -1051,6 +1052,7 @@ static HWND show_wait_window(void)
HeapFree( GetProcessHeap(), 0, name );
return hwnd;
}
+*/

static HANDLE start_rundll32( const char *inf_path, BOOL wow64 )
{
@@ -1127,7 +1129,7 @@ static void update_wineprefix( BOOL force )

if ((process = start_rundll32( inf_path, FALSE )))
{
- HWND hwnd = show_wait_window();
+/* HWND hwnd = show_wait_window();*/
for (;;)
{
MSG msg;
@@ -1139,7 +1141,7 @@ static void update_wineprefix( BOOL force )
}
else while (PeekMessageW( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageW( &msg );
}
- DestroyWindow( hwnd );
+/* DestroyWindow( hwnd );*/
}
WINE_MESSAGE( "wine: configuration in '%s' has been updated.\n", config_dir );
}

0 comments on commit c16fe57

Please sign in to comment.