From 28eccafc46deef68704c57e5c182fb32c23d47e5 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Wed, 15 Feb 2023 18:43:53 +0100 Subject: [PATCH] feat: update NosSmooth.Inject to show config path in failed error messages --- src/Inject/NosSmooth.Inject/nossmooth.cpp | 4 ++-- .../NosSmooth.Injector/NosSmooth.Inject.dll | Bin 53248 -> 53248 bytes .../NosSmooth.Injector.csproj | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Inject/NosSmooth.Inject/nossmooth.cpp b/src/Inject/NosSmooth.Inject/nossmooth.cpp index 9f07919..ae07bcc 100644 --- a/src/Inject/NosSmooth.Inject/nossmooth.cpp +++ b/src/Inject/NosSmooth.Inject/nossmooth.cpp @@ -84,7 +84,7 @@ load_assembly_and_get_function_pointer_fn get_dotnet_load_assembly(const char_t* int rc = init_fptr(config_path, nullptr, &cxt); if (rc > 1 || cxt == nullptr) { - std::cerr << "Init failed: " << std::hex << std::showbase << rc << std::endl; + std::cerr << "Init failed " << config_path << " " << std::hex << std::showbase << rc << std::endl; close_fptr(cxt); return nullptr; } @@ -95,7 +95,7 @@ load_assembly_and_get_function_pointer_fn get_dotnet_load_assembly(const char_t* hdt_load_assembly_and_get_function_pointer, &load_assembly_and_get_function_pointer); if (rc != 0 || load_assembly_and_get_function_pointer == nullptr) - std::cerr << "Get delegate failed: " << std::hex << std::showbase << rc << std::endl; + std::cerr << "Get delegate failed " << config_path << " " << std::hex << std::showbase << rc << std::endl; close_fptr(cxt); return (load_assembly_and_get_function_pointer_fn)load_assembly_and_get_function_pointer; diff --git a/src/Inject/NosSmooth.Injector/NosSmooth.Inject.dll b/src/Inject/NosSmooth.Injector/NosSmooth.Inject.dll index 1744de8e554239910e6f58329de1da29134d8672..7f5470d223e3050d6a3c176089ec95250803b124 100644 GIT binary patch delta 688 zcmZozz}&EadBP9oBFVQCf6wH+!ot9CV;LiZ#Y9D!%{v)Q*jQegvoK8Fs3pIN;{x;K z2i%@)|5ZO+U=)~a@2;{rm?w#c=K})+LvUDlZ|#MhJd+PfgfkwVEGel{f2KQ>BPe6f zOh$oj(FH&aL7lB4|NsB*>=gi#FO=T=|KEIsqx-~vQIKifU{UKcFTMiB175HoWG{ea zK{|o5*MZ_7Eg(VbJ16p4t6kBjd1{bPLgMdqvj{~M2h z0^Rz}ixQCPr?H2bfLs=JMu9KDa0134g94EK0?L+ApS(*dZF7TkO1_ADYKcNhYEEi; zVo9n(T4H8SYKp?-A6;8y6o8tLfoEQ32~5G}g$)Hvn=Se@_!*fuC(iBXXD+zMI608n zaMRkN^Mx delta 546 zcmZozz}&EadBP87WyuExo65)(fCUZ-v1oJMqz$g&d*(&n?|Nj@p zZ~p&pKEly`;=kwxpm29DNYwhw3%0la|HA~W@4Wa9R0iU%0jjb7^Wp`Rdj-V(^5W*? z{gR>_hk=5|2VU-;d`D7Rcma^p>3XNR_6|cSTXXFfhSKuMd{QzIdu9SHL2*IJYwRv? zhuQ&h7SIJ2P%hL3nous(1yUdvgt34GUB3i%pAG00oukGm@M1F1@QA4Rxae-*KgMTY zoPPEHf8!BQxLCh=aSbTf{WSJ)+5{$`z!ISHFF?No!1)$Zrr%Bfnu?fdnpv2+n?;!wnk_I}W46O=^Oh4n>=O+*03x9Q%>V!Z diff --git a/src/Inject/NosSmooth.Injector/NosSmooth.Injector.csproj b/src/Inject/NosSmooth.Injector/NosSmooth.Injector.csproj index 5c0b926..6cabb63 100644 --- a/src/Inject/NosSmooth.Injector/NosSmooth.Injector.csproj +++ b/src/Inject/NosSmooth.Injector/NosSmooth.Injector.csproj @@ -5,8 +5,8 @@ $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb;.dll enable enable - 1.1.1 - Include nethost.dll inside of the injector. + 1.1.2 + Update Inject. -- 2.48.1