misc: chore: Fix object creation

This commit is contained in:
KeatonTheBot
2025-09-25 17:04:07 -05:00
parent 0928851966
commit 9cdd9f6dbf
48 changed files with 315 additions and 316 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ namespace LibKenjinx.Android
private bool _isDisposed;
private bool _isOkPressed;
private string? _input;
private ManualResetEvent _resetEvent = new ManualResetEvent(false);
private ManualResetEvent _resetEvent = new(false);
public IHostUITheme HostUITheme => throw new NotImplementedException();
+1 -1
View File
@@ -19,7 +19,7 @@ namespace LibKenjinx.Android
internal const string BaseClassName = "org/kenjinx/android/KenjinxNative";
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();
private static (string name, string descriptor)[] _methods =
[
("test", "()V"),
+1 -1
View File
@@ -827,7 +827,7 @@ namespace LibKenjinx
EnableJitCacheEviction = enableJitCacheEviction;
EnableFsIntegrityChecks = enableFsIntegrityChecks;
HLEConfiguration configuration = new HLEConfiguration(VirtualFileSystem,
HLEConfiguration configuration = new(VirtualFileSystem,
LibHacHorizonManager,
ContentManager,
AccountManager,