harbingerofme / ror2-sotv-patcher

Boost Software License 1.0
1 stars 0 forks source link

Initializer throw when scanning native dlls #2

Open xiaoxiao921 opened 2 years ago

xiaoxiao921 commented 2 years ago
[Error  :   BepInEx] Failed to run Initializer of SotV_patcher.Patcher: System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
  at Mono.Cecil.PE.ImageReader.ReadOptionalHeaders (System.UInt16& subsystem, System.UInt16& dll_characteristics) [0x000bb] in <6034b380a22b41a596c9dc29d282c0a9>:0 
  at Mono.Cecil.PE.ImageReader.ReadImage () [0x0008b] in <6034b380a22b41a596c9dc29d282c0a9>:0 
  at Mono.Cecil.PE.ImageReader.ReadImage (Mono.Disposable`1[T] stream, System.String file_name) [0x00007] in <6034b380a22b41a596c9dc29d282c0a9>:0 
  at Mono.Cecil.ModuleDefinition.ReadModule (Mono.Disposable`1[T] stream, System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00006] in <6034b380a22b41a596c9dc29d282c0a9>:0 
  at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x0006c] in <6034b380a22b41a596c9dc29d282c0a9>:0 
  at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName) [0x00007] in <6034b380a22b41a596c9dc29d282c0a9>:0 
  at Mono.Cecil.AssemblyDefinition.ReadAssembly (System.String fileName) [0x00000] in <6034b380a22b41a596c9dc29d282c0a9>:0 
  at SotV_patcher.Patcher.GatherToBePatched () [0x00046] in <3a79e2b26cbb4f33b94de7b4b5434ac9>:0 
  at SotV_patcher.Patcher.Initialize () [0x000a6] in <3a79e2b26cbb4f33b94de7b4b5434ac9>:0 
  at BepInEx.Preloader.Patching.AssemblyPatcher.InitializePatchers () [0x0001e] in <7708c6986d77481da79d845851969a8e>:0 

Sometimes native dlls can sit in the plugins folder

harbingerofme commented 2 years ago

Must have missed that, thanks.