1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 08:13:31 +08:00

Merge pull request #12259 from frenzibyte/fix-ruleset-file-loading

Guard against same ruleset file with filenames of loaded assembly location instead
This commit is contained in:
Dan Balasescu 2021-04-02 19:21:33 +09:00 committed by GitHub
commit 143b8c422c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,7 @@ namespace osu.Game.Rulesets
{
var filename = Path.GetFileNameWithoutExtension(file);
if (loadedAssemblies.Values.Any(t => t.Namespace == filename))
if (loadedAssemblies.Values.Any(t => Path.GetFileNameWithoutExtension(t.Assembly.Location) == filename))
return;
try