mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Add comment in regards to the attaching of event handler to the assembly lookup event before call to loadUserRulesets().
This commit is contained in:
parent
a7179d1c87
commit
ba1c465edf
@ -29,6 +29,10 @@ namespace osu.Game.Rulesets
|
||||
// We cannot read assemblies from cwd, so should check loaded assemblies instead.
|
||||
loadFromAppDomain();
|
||||
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
|
||||
// to load as unable to locate the game core assembly.
|
||||
AppDomain.CurrentDomain.AssemblyResolve += resolveRulesetDependencyAssembly;
|
||||
loadUserRulesets();
|
||||
addMissingRulesets();
|
||||
|
Loading…
Reference in New Issue
Block a user