From 6869f4ed638cadcfa4f74727b693fe83da97b14c Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Thu, 22 Jul 2021 13:31:55 +0200 Subject: [PATCH] Updated Unity code for Game Core --- .gitignore | 1 + Assets/Scripts/SystemLibrary.cs | 2 +- Assets/Scripts/UniQuake.Interop.cs | 2 ++ Assets/Scripts/UniQuake.cs | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 39afb05..0d0674f 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ ORBIS_Debug/ Prospero_Debug/ Assets/StreamingAssets/ BuildPS5/ +BuildXB1/ diff --git a/Assets/Scripts/SystemLibrary.cs b/Assets/Scripts/SystemLibrary.cs index 173b3a1..33beb41 100644 --- a/Assets/Scripts/SystemLibrary.cs +++ b/Assets/Scripts/SystemLibrary.cs @@ -4,7 +4,7 @@ using System.Runtime.InteropServices; public static class SystemLibrary { -#if UNITY_STANDALONE_WIN +#if UNITY_STANDALONE_WIN || UNITY_GAMECORE [DllImport("kernel32", EntryPoint = "LoadLibrary", SetLastError = true, CharSet = CharSet.Unicode)] private static extern IntPtr LoadLibraryNative(string lpFileName); diff --git a/Assets/Scripts/UniQuake.Interop.cs b/Assets/Scripts/UniQuake.Interop.cs index 3d83b68..ce415ae 100644 --- a/Assets/Scripts/UniQuake.Interop.cs +++ b/Assets/Scripts/UniQuake.Interop.cs @@ -15,6 +15,8 @@ public partial class UniQuake #endif #elif UNITY_PS4 || UNITY_PS5 private const string DllPath = "Plugins/uniquake.prx"; +#elif UNITY_GAMECORE + private const string DllPath = "Plugins/uniquake.dll"; #endif private IntPtr libraryHandle; diff --git a/Assets/Scripts/UniQuake.cs b/Assets/Scripts/UniQuake.cs index 05be89c..f7565c1 100644 --- a/Assets/Scripts/UniQuake.cs +++ b/Assets/Scripts/UniQuake.cs @@ -87,7 +87,7 @@ public partial class UniQuake: MonoBehaviour quakeParms = new QuakeParms { -#if UNITY_PS4 || UNITY_PS5 +#if UNITY_PS4 || UNITY_PS5 || UNITY_GAMECORE baseDir = Application.streamingAssetsPath, userDir = Application.persistentDataPath, #else