Currently, if LoadLibraryW fails, ModEngine2 just prints a generic failure message without any additional details. This makes it very difficult to debug why a DLL can't be loaded, especially when it's failing for mod users but not the mod author. According to the LoadLibraryW documentation, extended error information can be retrieved with GetLastError() and formatted with FormatMessage (end-to-end example here). Including this message in the output would make these issues substantially easier to debug.
Currently, if
LoadLibraryW
fails, ModEngine2 just prints a generic failure message without any additional details. This makes it very difficult to debug why a DLL can't be loaded, especially when it's failing for mod users but not the mod author. According to theLoadLibraryW
documentation, extended error information can be retrieved withGetLastError()
and formatted withFormatMessage
(end-to-end example here). Including this message in the output would make these issues substantially easier to debug.