We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 000bd23 commit f0e45bfCopy full SHA for f0e45bf
1 file changed
TerrariaServerAPI/TerrariaApi.Server/ServerApi.cs
@@ -349,9 +349,8 @@ internal static void LoadPlugins()
349
byte[] pe = null;
350
try
351
{
352
- var pdb = Path.ChangeExtension(fileInfo.FullName, ".pdb");
353
- var symbols = File.Exists(pdb) ? File.ReadAllBytes(pdb) : null;
354
- assembly = Assembly.Load(pe = File.ReadAllBytes(fileInfo.FullName), symbols);
+ var pdbPath = Path.ChangeExtension(fileInfo.FullName, ".pdb");
+ assembly = Assembly.Load(pe = File.ReadAllBytes(fileInfo.FullName), File.Exists(pdb) ? File.ReadAllBytes(pdbPath) : null);
355
}
356
catch (BadImageFormatException)
357
0 commit comments