Skip to content

Commit

Permalink
remove Lua54.dll since it no longer exists
Browse files Browse the repository at this point in the history
shananas committed Jan 17, 2025
1 parent dd93312 commit caf1f43
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions OpenKh.Tools.ModsManager/ViewModels/SetupWizardViewModel.cs
Original file line number Diff line number Diff line change
@@ -527,13 +527,11 @@ public bool IsLuaBackendInstalled
if (PcReleaseLocation != null && GameCollection == 0)
{
return File.Exists(Path.Combine(PcReleaseLocation, "LuaBackend.dll")) &&
File.Exists(Path.Combine(PcReleaseLocation, "lua54.dll")) &&
File.Exists(Path.Combine(PcReleaseLocation, "LuaBackend.toml"));
}
else if (PcReleaseLocationKH3D != null && GameCollection == 1)
{
return File.Exists(Path.Combine(PcReleaseLocationKH3D, "LuaBackend.dll")) &&
File.Exists(Path.Combine(PcReleaseLocationKH3D, "lua54.dll")) &&
File.Exists(Path.Combine(PcReleaseLocationKH3D, "LuaBackend.toml"));
}
else
@@ -1063,7 +1061,6 @@ public SetupWizardViewModel()
else
{
File.Move(Path.Combine(TempExtractionLocation, "DBGHELP.dll"), Path.Combine(DestinationCollection, "LuaBackend.dll"), true);
File.Move(Path.Combine(TempExtractionLocation, "lua54.dll"), Path.Combine(DestinationCollection, "lua54.dll"), true);
File.Move(Path.Combine(TempExtractionLocation, "LuaBackend.toml"), Path.Combine(DestinationCollection, "LuaBackend.toml"), true);
string config = File.ReadAllText(Path.Combine(DestinationCollection, "LuaBackend.toml")).Replace("\\", "/").Replace("\\\\", "/");
if (LuaScriptPaths.Contains("kh1") && GameCollection == 0)
@@ -1289,13 +1286,11 @@ public SetupWizardViewModel()
if (GameCollection == 0)
{
File.Delete(Path.Combine(PcReleaseLocation, "LuaBackend.dll"));
File.Delete(Path.Combine(PcReleaseLocation, "lua54.dll"));
File.Delete(Path.Combine(PcReleaseLocation, "LuaBackend.toml"));
}
else if (GameCollection == 1)
{
File.Delete(Path.Combine(PcReleaseLocationKH3D, "LuaBackend.dll"));
File.Delete(Path.Combine(PcReleaseLocationKH3D, "lua54.dll"));
File.Delete(Path.Combine(PcReleaseLocationKH3D, "LuaBackend.toml"));
}
OnPropertyChanged(nameof(IsLuaBackendInstalled));

0 comments on commit caf1f43

Please sign in to comment.