mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Fix inject problems (#820)
* CoreCLR: resolve and load nethost on demand instead of requiring it on load * Remove nethost loading from C# side * Added option to not chain Process.Dispose; see for last error only if result is empty
This commit is contained in:
parent
5b4833a6f7
commit
9a38a9470c
15 changed files with 57 additions and 94 deletions
|
|
@ -5,8 +5,10 @@
|
|||
#include "nethost/nethost.h"
|
||||
|
||||
class CoreCLR {
|
||||
public:
|
||||
explicit CoreCLR();
|
||||
void* const m_calling_module;
|
||||
|
||||
public:
|
||||
explicit CoreCLR(void* calling_module);
|
||||
~CoreCLR() = default;
|
||||
|
||||
int load_hostfxr();
|
||||
|
|
@ -32,7 +34,7 @@ class CoreCLR {
|
|||
void* reserved,
|
||||
void** delegate) const;
|
||||
|
||||
private:
|
||||
private:
|
||||
/* HostFXR delegates. */
|
||||
hostfxr_initialize_for_runtime_config_fn m_hostfxr_initialize_for_runtime_config_fptr{};
|
||||
hostfxr_get_runtime_delegate_fn m_hostfxr_get_runtime_delegate_fptr{};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue