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