mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 18:32:55 +08:00
Guard against same ruleset file with loaded assembly filenames instead
This commit is contained in:
parent
133c529b2d
commit
fcd56dba44
@ -3,6 +3,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
@ -173,7 +174,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
|
||||
|
Loading…
Reference in New Issue
Block a user