mirror of
https://github.com/Thracky/GlosSI.git
synced 2024-11-03 09:40:18 +00:00
fix dll injection / ejection not working:
fixed injection not working when dll-path has spaces fixed ejection not working by running gameluancher as admin
This commit is contained in:
parent
3dbd4de39a
commit
56edf5bad4
@ -190,9 +190,10 @@ bool GloSC_GameLauncher::IsProcessRunning(DWORD pid)
|
||||
void GloSC_GameLauncher::unhookBindings()
|
||||
{
|
||||
QProcess proc;
|
||||
proc.setNativeArguments(" --process-name Steam.exe --module-name EnforceBindingDLL.dll --eject ");
|
||||
proc.setNativeArguments(" --process-name Steam.exe --module-name \"EnforceBindingDLL.dll\" --eject ");
|
||||
proc.start("Injector.exe", QIODevice::ReadOnly);
|
||||
proc.waitForFinished();
|
||||
bHookedSteam = false;
|
||||
}
|
||||
|
||||
|
||||
|
@ -105,6 +105,7 @@
|
||||
<AdditionalLibraryDirectories>$(QTDIR)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<AdditionalDependencies>qtmain.lib;Qt5Core.lib;Qt5Gui.lib;Qt5Widgets.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
@ -122,6 +123,7 @@
|
||||
<AdditionalLibraryDirectories>$(QTDIR)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<AdditionalDependencies>qtmain.lib;Qt5Core.lib;Qt5Gui.lib;Qt5Widgets.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
|
@ -254,7 +254,7 @@ void SteamTargetRenderer::hookBindings()
|
||||
dir = dir.mid(0, dir.lastIndexOf("\\"));
|
||||
|
||||
QProcess proc;
|
||||
proc.setNativeArguments(" --process-name Steam.exe --module-name " + dir + "\\EnforceBindingDLL.dll --inject ");
|
||||
proc.setNativeArguments(" --process-name Steam.exe --module-name \"" + dir + "\\EnforceBindingDLL.dll\" --inject ");
|
||||
proc.start(dir + "\\Injector.exe", QIODevice::ReadOnly);
|
||||
proc.waitForFinished();
|
||||
if (QString::fromStdString(proc.readAll().toStdString()).contains("Successfully injected module!")) //if we have injected (and patched the function)
|
||||
|
Loading…
Reference in New Issue
Block a user