Skip to content

Commit

Permalink
Implemented a new XNA check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dradonhunter11 committed May 30, 2020
1 parent cfadec6 commit 5ac0a35
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions patches/64bit/Terraria.Utilities/PlatformUtilities.cs.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
--- src/tModLoader/Terraria.Utilities/PlatformUtilities.cs
+++ src/64bit/Terraria.Utilities/PlatformUtilities.cs
@@ -1,6 +_,11 @@
@@ -1,6 +_,12 @@
-#if !WINDOWS
+#if FNA
using SDL2;
+#endif
using System;
+using System.Linq;
+using System.Reflection;
+using Microsoft.Win32;
+using Microsoft.Xna.Framework.Graphics;
Expand Down Expand Up @@ -101,9 +102,9 @@
+ }
+ }
+
+ public static bool XNACheck() {
+ return !Environment.Is64BitProcess;
+ }
+ public static bool XNACheck() =>
+ AppDomain.CurrentDomain.GetAssemblies().Any(i => i.FullName == "FNA");
+
+
+ public static bool RegisteryKeyInstalled(string regkey) {
+
Expand Down

0 comments on commit 5ac0a35

Please sign in to comment.