Browse Source

Updated Unity code for Game Core

console
Nico de Poel 5 years ago
parent
commit
6869f4ed63
  1. 1
      .gitignore
  2. 2
      Assets/Scripts/SystemLibrary.cs
  3. 2
      Assets/Scripts/UniQuake.Interop.cs
  4. 2
      Assets/Scripts/UniQuake.cs

1
.gitignore

@ -19,3 +19,4 @@ ORBIS_Debug/
Prospero_Debug/
Assets/StreamingAssets/
BuildPS5/
BuildXB1/

2
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);

2
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;

2
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

Loading…
Cancel
Save