forked from MeloNX/MeloNX
remove unused class
This commit is contained in:
parent
59c34f10aa
commit
c825ab4d6f
@ -22,6 +22,7 @@ namespace LibRyujinx.Android
|
|||||||
internal unsafe static class Interop
|
internal unsafe static class Interop
|
||||||
{
|
{
|
||||||
internal const string BaseClassName = "org/ryujinx/android/RyujinxNative";
|
internal const string BaseClassName = "org/ryujinx/android/RyujinxNative";
|
||||||
|
|
||||||
private static JGlobalRef? _classId;
|
private static JGlobalRef? _classId;
|
||||||
private static ConcurrentDictionary<(string method, string descriptor), JMethodId> _methodCache = new ConcurrentDictionary<(string method, string descriptor), JMethodId>();
|
private static ConcurrentDictionary<(string method, string descriptor), JMethodId> _methodCache = new ConcurrentDictionary<(string method, string descriptor), JMethodId>();
|
||||||
private static (string name, string descriptor)[] _methods = new[]
|
private static (string name, string descriptor)[] _methods = new[]
|
||||||
|
@ -7,8 +7,8 @@ using System;
|
|||||||
|
|
||||||
using Rxmxnx.PInvoke;
|
using Rxmxnx.PInvoke;
|
||||||
|
|
||||||
namespace LibRyujinx.Jni;
|
namespace LibRyujinx.Jni
|
||||||
|
{
|
||||||
internal static class JniHelper
|
internal static class JniHelper
|
||||||
{
|
{
|
||||||
public const Int32 JniVersion = 0x00010006; //JNI_VERSION_1_6;
|
public const Int32 JniVersion = 0x00010006; //JNI_VERSION_1_6;
|
||||||
@ -67,7 +67,8 @@ internal static class JniHelper
|
|||||||
FindClassDelegate findClass = findClassPtr.GetUnsafeDelegate<FindClassDelegate>()!;
|
FindClassDelegate findClass = findClassPtr.GetUnsafeDelegate<FindClassDelegate>()!;
|
||||||
JClassLocalRef jClass = findClass(jEnv, className.ValuePointer);
|
JClassLocalRef jClass = findClass(jEnv, className.ValuePointer);
|
||||||
|
|
||||||
if (JniHelper.ExceptionCheck(jEnv)) return default;
|
if (JniHelper.ExceptionCheck(jEnv))
|
||||||
|
return default;
|
||||||
|
|
||||||
IntPtr newGlobalRefPtr = jInterface.NewGlobalRefPointer;
|
IntPtr newGlobalRefPtr = jInterface.NewGlobalRefPointer;
|
||||||
NewGlobalRefDelegate newGlobalRef = newGlobalRefPtr.GetUnsafeDelegate<NewGlobalRefDelegate>()!;
|
NewGlobalRefDelegate newGlobalRef = newGlobalRefPtr.GetUnsafeDelegate<NewGlobalRefDelegate>()!;
|
||||||
@ -139,7 +140,8 @@ internal static class JniHelper
|
|||||||
IntPtr exceptionCheckPtr = jInterface.ExceptionCheckPointer;
|
IntPtr exceptionCheckPtr = jInterface.ExceptionCheckPointer;
|
||||||
ExceptionCheckDelegate exceptionCheck = exceptionCheckPtr.GetUnsafeDelegate<ExceptionCheckDelegate>()!;
|
ExceptionCheckDelegate exceptionCheck = exceptionCheckPtr.GetUnsafeDelegate<ExceptionCheckDelegate>()!;
|
||||||
|
|
||||||
if (!exceptionCheck(jEnv)) return false;
|
if (!exceptionCheck(jEnv))
|
||||||
|
return false;
|
||||||
IntPtr exceptionDescribePtr = jInterface.ExceptionDescribePointer;
|
IntPtr exceptionDescribePtr = jInterface.ExceptionDescribePointer;
|
||||||
IntPtr exceptionClearPtr = jInterface.ExceptionClearPointer;
|
IntPtr exceptionClearPtr = jInterface.ExceptionClearPointer;
|
||||||
|
|
||||||
@ -246,3 +248,4 @@ internal static class JniHelper
|
|||||||
callVoidMethod(jEnv, jObject, jMethodId, fArgs.ValuePointer);
|
callVoidMethod(jEnv, jObject, jMethodId, fArgs.ValuePointer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Ryujinx.Common.SystemInfo
|
|
||||||
{
|
|
||||||
public class SystemInfo
|
|
||||||
{
|
|
||||||
//public static bool IsBionic { get; set; }
|
|
||||||
|
|
||||||
/* public static bool IsAnddroid()
|
|
||||||
{
|
|
||||||
// return OperatingSystem.IsAndroid() || IsBionic;
|
|
||||||
}*/
|
|
||||||
}
|
|
||||||
}
|
|
@ -11,8 +11,8 @@ android {
|
|||||||
applicationId "org.ryujinx.android"
|
applicationId "org.ryujinx.android"
|
||||||
minSdk 30
|
minSdk 30
|
||||||
targetSdk 34
|
targetSdk 34
|
||||||
versionCode 10042
|
versionCode 10044
|
||||||
versionName '1.0.42'
|
versionName '1.0.44'
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
vectorDrawables {
|
vectorDrawables {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user