mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
wip
This commit is contained in:
parent
1e8c7aa4e7
commit
60591775ca
1 changed files with 3 additions and 3 deletions
|
|
@ -155,14 +155,14 @@ DllExport DWORD WINAPI Initialize(LPVOID lpParam)
|
||||||
std::filesystem::path fs_module_path(_module_path);
|
std::filesystem::path fs_module_path(_module_path);
|
||||||
|
|
||||||
std::wstring runtimeconfig_path = _wcsdup(fs_module_path.replace_filename(L"Dalamud.runtimeconfig.json").c_str());
|
std::wstring runtimeconfig_path = _wcsdup(fs_module_path.replace_filename(L"Dalamud.runtimeconfig.json").c_str());
|
||||||
std::wstring base_path = _wcsdup(fs_module_path.replace_filename(L"Dalamud.dll").c_str());
|
std::wstring module_path = _wcsdup(fs_module_path.replace_filename(L"Dalamud.dll").c_str());
|
||||||
|
|
||||||
// =========================================================================== //
|
// =========================================================================== //
|
||||||
|
|
||||||
void* entrypoint_vfn;
|
void* entrypoint_vfn;
|
||||||
int result = InitializeClrAndGetEntryPoint(
|
int result = InitializeClrAndGetEntryPoint(
|
||||||
runtimeconfig_path,
|
runtimeconfig_path,
|
||||||
base_path,
|
module_path,
|
||||||
L"Dalamud.EntryPoint, Dalamud",
|
L"Dalamud.EntryPoint, Dalamud",
|
||||||
L"Initialize",
|
L"Initialize",
|
||||||
L"Dalamud.EntryPoint+InitDelegate, Dalamud",
|
L"Dalamud.EntryPoint+InitDelegate, Dalamud",
|
||||||
|
|
@ -175,7 +175,7 @@ DllExport DWORD WINAPI Initialize(LPVOID lpParam)
|
||||||
custom_component_entry_point_fn entrypoint_fn = reinterpret_cast<custom_component_entry_point_fn>(entrypoint_vfn);
|
custom_component_entry_point_fn entrypoint_fn = reinterpret_cast<custom_component_entry_point_fn>(entrypoint_vfn);
|
||||||
|
|
||||||
printf("Initializing exception handler...");
|
printf("Initializing exception handler...");
|
||||||
//AddVectoredExceptionHandler(99, VectoredHandler);
|
AddVectoredExceptionHandler(99, VectoredHandler);
|
||||||
printf("Done!\n");
|
printf("Done!\n");
|
||||||
|
|
||||||
printf("Initializing Dalamud... ");
|
printf("Initializing Dalamud... ");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue