Reword comment and remove brackets

This commit is contained in:
Salman Ahmed 2021-08-22 12:40:41 +03:00
parent 9cd0a182f6
commit 956112eb10
1 changed files with 3 additions and 4 deletions

View File

@ -31,12 +31,11 @@ public RulesetStore(IDatabaseContextFactory factory, Storage storage = null)
// We cannot read assemblies from cwd, so should check loaded assemblies instead.
loadFromAppDomain();
// This null check prevents Android from attempting to load the rulesets from disk.
// RuntimeInfo.StartupDirectory returns null on Android, and returns a path on other platforms.
// This null check prevents Android from attempting to load the rulesets from disk,
// as the underlying path "AppContext.BaseDirectory", despite being non-nullable, it returns null on android.
// See https://github.com/xamarin/xamarin-android/issues/3489.
if (RuntimeInfo.StartupDirectory != null)
{
loadFromDisk();
}
// the event handler contains code for resolving dependency on the game assembly for rulesets located outside the base game directory.
// 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