Skip to content

Commit

Permalink
patches: add workaround to fix world of warships login hang
Browse files Browse the repository at this point in the history
  • Loading branch information
GloriousEggroll committed Oct 16, 2023
1 parent fd75157 commit 4e0e1ff
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions patches/game-patches/world-of-warships-login-hang-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/dlls/imm32/ime.c b/dlls/imm32/ime.c
index 38a2a070117..424b286d0b5 100644
--- a/dlls/imm32/ime.c
+++ b/dlls/imm32/ime.c
@@ -701,6 +701,13 @@ BOOL WINAPI NotifyIME( HIMC himc, DWORD action, DWORD index, DWORD value )
}
case CPS_CANCEL:
input_context_set_comp_str( ctx, NULL, 0 );
+ const char *sgi = getenv("SteamGameId");
+
+ if ((!sgi) | (sgi && !strcmp(sgi, "552990"))) {
+ ImmSetOpenStatus( himc, FALSE );
+ break;
+ };
+
if ((msg = ime_set_composition_status( himc, FALSE ))) ime_send_message( himc, msg, 0, 0 );
NtUserNotifyIMEStatus( ctx->hWnd, FALSE );
break;
4 changes: 4 additions & 0 deletions patches/protonprep-valve-staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@
echo "WINE: -GAME FIXES- Fix Farlight 84 dxva crash"
patch -Np1 < ../patches/game-patches/farlight84.patch

# https://github.com/ValveSoftware/Proton/issues/333#issuecomment-1763560466
echo "WINE: -GAME FIXES- Fix World of Warships login hang"
patch -Np1 < ../patches/game-patches/world-of-warships-login-hang-fix.patch

### END GAME PATCH SECTION ###

### (2-4) WINE HOTFIX/BACKPORT SECTION ###
Expand Down

0 comments on commit 4e0e1ff

Please sign in to comment.