[PATCH] mscoree: Use builtin XNA implementation by default.

Esme Povirk esme at codeweavers.com
Tue Aug 11 22:15:46 CDT 2020


Wine-bug: https://bugs.winehq.org/show_bug.cgi?id=32877
Signed-off-by: Esme Povirk <esme at codeweavers.com>
---
Proton has been using this setting for a while, and I think it's
shown that FNA works very well as an XNA replacement. This is
clearly the best option for users, and it can still be
overridden with an environment variable or registry key if a
developer wants to work on supporting the XNA redist.

 dlls/mscoree/metahost.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/mscoree/metahost.c b/dlls/mscoree/metahost.c
index 77029942528..e854ec2bdfa 100644
--- a/dlls/mscoree/metahost.c
+++ b/dlls/mscoree/metahost.c
@@ -1502,6 +1502,10 @@ static DWORD get_basename_search_flags(const char *basename, MonoAssemblyName *a
         return reg_entry.flags;
     }
 
+    if (strcmp(basename, "Microsoft.Xna.Framework.*") == 0)
+        /* XNA redist is broken in Wine Mono, use FNA instead. */
+        return 0;
+
     return ASSEMBLY_SEARCH_UNDEFINED;
 }
 
-- 
2.17.1




More information about the wine-devel mailing list