Skip to content

Instantly share code, notes, and snippets.

@achurch
Created April 24, 2019 10:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save achurch/3d01aad515b1784c671637018f076ecd to your computer and use it in GitHub Desktop.
Save achurch/3d01aad515b1784c671637018f076ecd to your computer and use it in GitHub Desktop.
Wine hack for FF14 launcher
diff -urN wine-4.6-orig/dlls/ntdll/misc.c wine-4.6/dlls/ntdll/misc.c
--- wine-4.6-orig/dlls/ntdll/misc.c 2019-04-13 03:10:12 +0900
+++ wine-4.6/dlls/ntdll/misc.c 2019-04-24 19:10:44 +0900
@@ -524,3 +524,10 @@
*present = TRUE;
return TRUE;
}
+
+BOOL IsTransgaming(void)
+{
+ static int call_count = -1;
+ call_count++;
+ return call_count == 1;
+}
diff -urN wine-4.6-orig/dlls/ntdll/ntdll.spec wine-4.6/dlls/ntdll/ntdll.spec
--- wine-4.6-orig/dlls/ntdll/ntdll.spec 2019-04-24 18:23:50 +0900
+++ wine-4.6/dlls/ntdll/ntdll.spec 2019-04-24 18:48:37 +0900
@@ -1537,3 +1537,5 @@
# User shared data
@ cdecl __wine_user_shared_data()
+
+@ cdecl IsTransgaming()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment