Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions source/Reloaded.Mod.Launcher.Lib/Utility/AsiLoaderDeployer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private void DeployBootstrapper(out bool alreadyHasAsiPlugins, out string bootst
string? GetSupportedDll(BasicPeParser file, string[] supportedDlls)
{
var names = file.GetImportDescriptorNames();
return names.FirstOrDefault(x => supportedDlls.Contains(x, StringComparer.OrdinalIgnoreCase));
return supportedDlls.FirstOrDefault(x => names.Contains(x, StringComparer.OrdinalIgnoreCase));
}

return GetSupportedDll(peParser, peParser.Is32BitHeader ? AsiLoaderSupportedDll32 : AsiLoaderSupportedDll64);
Expand All @@ -203,13 +203,13 @@ private void ExtractAsiLoader(string filePath, bool is64bit)

private static readonly string[] AsiLoaderSupportedDll32 =
{
"xlive.dll",
"version.dll",
"winmm.dll",
"wininet.dll",
"vorbisFile.dll",
"version.dll",
"msvfw32.dll",
"msacm32.dll",
"xlive.dll",
"dsound.dll",
"dinput8.dll",
"dinput.dll",
Expand All @@ -221,11 +221,11 @@ private void ExtractAsiLoader(string filePath, bool is64bit)

private static readonly string[] AsiLoaderSupportedDll64 =
{
"version.dll",
"winmm.dll",
"wininet.dll",
"dsound.dll",
"dinput8.dll",
"version.dll"
"dinput8.dll"
};

private static readonly string[] AsiCommonDirectories =
Expand Down
Loading