Skip to content

Commit

Permalink
Fixed Accidental Regression
Browse files Browse the repository at this point in the history
  • Loading branch information
HerpDerpinstine committed Oct 14, 2024
1 parent 7828f4e commit dd25e48
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MelonLoader/Melons/MelonFolderHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ private static void ProcessFolder<T>(string path,
if (!Directory.Exists(path))
return;

InternalUtils.MelonAssemblyResolver.AddSearchDirectory(path);

// Get Directories
var directories = Directory.GetDirectories(path, "*", SearchOption.AllDirectories);
if ((directories != null) && (directories.Length > 0))
Expand All @@ -115,6 +117,8 @@ private static void ProcessFolder<T>(string path,
continue;

// Load Assemblies
MelonUtils.AddNativeDLLDirectory(dir);
InternalUtils.MelonAssemblyResolver.AddSearchDirectory(dir);
LoadFolder<T>(dir, false, ref hasWroteLine, ref melonAssemblies);
}

Expand All @@ -132,6 +136,7 @@ private static void ProcessFolder<T>(string path,
continue;

// Load Melons from Extended Folder
InternalUtils.MelonAssemblyResolver.AddSearchDirectory(dir);
LoadFolder<T>(dir, true, ref hasWroteLine, ref melonAssemblies);
}
}
Expand Down

0 comments on commit dd25e48

Please sign in to comment.