This commit is contained in:
nitrogenoliquido committed 2026-10-14 22:51:32 -05:00
1 parent 82004f6b5e
commit e0347fe1cb
8 files changed
+97 -13

No files matched your search

+11 -2
View File
@@ -70,8 +70,12 @@ bool Injector::ExtractBundledDll(std::wstring& outDllPath, std::wstring& outLogP
bool Injector::InjectDll(DWORD pid, const std::wstring& dllPath) {
if (ProcessUtil::IsModuleLoaded(pid, L"SlinkyNative.dll")) {
ConsoleUI::SetStatusText("DLL already loaded.");
return true;
ConsoleUI::SetStatusText("Unloading previous instance...");
if (!ProcessUtil::UnloadModule(pid, L"SlinkyNative.dll")) {
ConsoleUI::SetStatusText("Could not unload previous instance.");
return false;
}
Sleep(300);
}
ConsoleUI::SetStatusText("Opening game process");
@@ -138,6 +142,11 @@ bool Injector::InjectDll(DWORD pid, const std::wstring& dllPath) {
VirtualFreeEx(hProcess, pRemotePath, 0, MEM_RELEASE);
CloseHandle(hProcess);
if (dwExitCode == 0) {
ConsoleUI::SetStatusText("LoadLibraryW failed in game process.");
return false;
}
if (!ProcessUtil::WaitForModuleLoad(pid, L"SlinkyNative.dll", 5000)) {
ConsoleUI::SetStatusText("DLL not in game after load attempt.");
return false;