Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: fixed next action display error
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Mar 18, 2023
1 parent af13b96 commit 0d56c54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion RotationSolver/Updaters/ActionUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ internal static void UpdateNextAction()
exception = ex;
}

NextAction = null;
NextAction = NextGCDAction = null;
}

static uint _lastSayingGCDAction;
Expand Down
17 changes: 6 additions & 11 deletions RotationSolver/Updaters/RotationUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,16 @@ public static void GetAllCustomRotations()
var directories = Service.Config.OtherLibs
.Select(s => s.Trim()).Append(Path.GetDirectoryName(Assembly.GetAssembly(typeof(ICustomRotation)).Location));

#if DEBUG
foreach (var dir in directories)
{
foreach (var item in Directory.GetFiles(dir, "*.dll"))
{
Service.ChatGui.Print(item);
}
}
#endif

var assemblies = from dir in directories
from l in Directory.GetFiles(dir, "*.dll")
where !_locs.Any(l.Contains)
select RotationLoadContext.LoadFrom(l);

#if DEBUG
foreach (var ass in assemblies)
{
Service.ChatGui.Print(ass.FullName);
}
#endif
AuthorHashes = (from a in assemblies
select a.GetCustomAttribute<AuthorHashAttribute>() into author
where author != null
Expand Down

0 comments on commit 0d56c54

Please sign in to comment.