0efb0b5e3e
This commit is contained in:
2dust
2024-10-26 18:00:22 +08:00
parent 2f02c2970c
commit 88990b4828
3 changed files with 16 additions and 27 deletions
+2 -3
View File
@@ -309,10 +309,9 @@ namespace ServiceLib.Services
{
var coreInfo = CoreInfoHandler.Instance.GetCoreInfo(type);
string filePath = string.Empty;
foreach (string name in coreInfo.CoreExes)
foreach (var name in coreInfo.CoreExes)
{
string vName = Utils.GetExeName(name);
vName = Utils.GetBinPath(vName, coreInfo.CoreType.ToString());
var vName = Utils.GetBinPath(Utils.GetExeName(name), coreInfo.CoreType.ToString());
if (File.Exists(vName))
{
filePath = vName;