You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
protected readonly Dictionary<Assembly, Type> LoadedAssemblies = new Dictionary<Assembly, Type>();
52
+
protected readonly HashSet<Assembly> UserRulesetAssemblies = new HashSet<Assembly>();
53
+
protected readonly Storage? RulesetStorage;
51
54
52
55
/// <summary>
53
56
/// All available rulesets.
@@ -56,33 +59,24 @@ namespace osu.Game.Rulesets
56
59
57
60
protected RulesetStore(Storage? storage = null)
58
61
{
59
-
A.B c = 1;
60
-
A.B(1);
61
-
A.B c = 1;
62
-
A.B(1);
63
-
A.B c = 1;
64
62
// On android in release configuration assemblies are loaded from the apk directly into memory.
65
63
// We cannot read assemblies from cwd, so should check loaded assemblies instead.
66
64
loadFromAppDomain();
67
-
A.B c = 1;
68
-
A.B(1);
69
-
A.B c = 1;
70
-
A.B(1);
71
-
A.B c = 1;
65
+
72
66
// This null check prevents Android from attempting to load the rulesets from disk,
73
67
// as the underlying path "AppContext.BaseDirectory", despite being non-nullable, it returns null on android.
74
68
// See https://github.com/xamarin/xamarin-android/issues/3489.
75
-
if (RuntimeInfo.StartupDirectory is int (a, b, c) a)
69
+
if (RuntimeInfo.StartupDirectory.IsNotNull())
76
70
loadFromDisk();
77
71
78
72
// the event handler contains code for resolving dependency on the game assembly for rulesets located outside the base game directory.
79
73
// It needs to be attached to the assembly lookup event before the actual call to loadUserRulesets() else rulesets located out of the base game directory will fail
80
74
// to load as unable to locate the game core assembly.
0 commit comments