Cleanup and update readme

This commit is contained in:
Sinai
2021-08-03 18:30:07 +10:00
parent afa4135b67
commit 1fa1283a68
3 changed files with 19 additions and 11 deletions

View File

@ -499,15 +499,14 @@ namespace UnityExplorer
{
if (Directory.Exists(UnhollowedFolderPath))
{
var files = Directory.GetFiles(UnhollowedFolderPath);
foreach (var filePath in files)
DoLoadModule(filePath, false);
foreach (var filePath in Directory.GetFiles(UnhollowedFolderPath, "*.dll"))
DoLoadModule(filePath);
}
else
ExplorerCore.LogWarning($"Expected Unhollowed folder path does not exist: '{UnhollowedFolderPath}'");
}
internal bool DoLoadModule(string fullPath, bool suppressWarning = false)
internal bool DoLoadModule(string fullPath)
{
if (string.IsNullOrEmpty(fullPath) || !File.Exists(fullPath))
return false;