Skip to content

Commit

Permalink
Remove some extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
FloppyDisk committed Jul 1, 2023
1 parent e8646ac commit 397b32d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions PulsarModLoader/ModManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,8 @@ public void LoadModsDirectory(string modsDir)
modDirectories.Add(modsDir);

//Unzip mods
Logger.Info("ZipMods");
Logger.Info((Directory.GetFiles(modsDir, "*.zip")).ToString());
foreach (string ZipPath in Directory.GetFiles(modsDir, "*.zip"))
{
Logger.Info($"Found: {ZipPath}");

//Get the full path from the mods dir path
string ZipExtractPath = Path.GetFullPath(modsDir);

Expand All @@ -225,6 +221,7 @@ public void LoadModsDirectory(string modsDir)
{
ZipExtractPath += Path.DirectorySeparatorChar;
}

//Open zip file index and extract only dll files
using (ZipArchive Archive = ZipFile.OpenRead(ZipPath))
{
Expand All @@ -237,7 +234,6 @@ public void LoadModsDirectory(string modsDir)
//If the mod exists, delete it and replace with this one.
if (File.Exists(DestinationPath))
{
Logger.Info($"Delete Old: {DestinationPath}");
File.Delete(DestinationPath);
}

Expand All @@ -252,7 +248,6 @@ public void LoadModsDirectory(string modsDir)

//Delete Zip archive once we are done as we have the DLL's now
File.Delete(ZipPath);

}

// Load mods
Expand Down

0 comments on commit 397b32d

Please sign in to comment.