mirror of
https://github.com/Thracky/GlosSI.git
synced 2024-11-03 09:40:18 +00:00
Impl and use GloSC_Watchdog
This commit is contained in:
parent
387a357516
commit
7c4865629c
12
GloSC.sln
12
GloSC.sln
@ -9,6 +9,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GloSC", "GloSC\GloSC.vcxpro
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "EnforceBindingDLL", "EnforceBindingDLL\EnforceBindingDLL.vcxproj", "{AFA0047E-7DEE-472A-AF4B-436A30459905}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GloSC_Watchdog", "GloSC_Watchdog\GloSC_Watchdog.vcxproj", "{752D3933-73A3-45E4-B139-CCB8C04BE543}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
@ -41,12 +43,20 @@ Global
|
||||
{AFA0047E-7DEE-472A-AF4B-436A30459905}.Release|x64.Build.0 = Release|Win32
|
||||
{AFA0047E-7DEE-472A-AF4B-436A30459905}.Release|x86.ActiveCfg = Release|Win32
|
||||
{AFA0047E-7DEE-472A-AF4B-436A30459905}.Release|x86.Build.0 = Release|Win32
|
||||
{752D3933-73A3-45E4-B139-CCB8C04BE543}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{752D3933-73A3-45E4-B139-CCB8C04BE543}.Debug|x64.Build.0 = Debug|x64
|
||||
{752D3933-73A3-45E4-B139-CCB8C04BE543}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{752D3933-73A3-45E4-B139-CCB8C04BE543}.Debug|x86.Build.0 = Debug|Win32
|
||||
{752D3933-73A3-45E4-B139-CCB8C04BE543}.Release|x64.ActiveCfg = Release|x64
|
||||
{752D3933-73A3-45E4-B139-CCB8C04BE543}.Release|x64.Build.0 = Release|x64
|
||||
{752D3933-73A3-45E4-B139-CCB8C04BE543}.Release|x86.ActiveCfg = Release|Win32
|
||||
{752D3933-73A3-45E4-B139-CCB8C04BE543}.Release|x86.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
Qt5Version = 5.10.1_x64
|
||||
SolutionGuid = {F7ACD6EA-A3F9-4E3C-8A47-AC10F52B14B9}
|
||||
Qt5Version = 5.10.1_x64
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
@ -72,6 +72,7 @@
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)\build\$(Platform)\$(Configuration)\</OutDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
@ -84,7 +85,7 @@
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
@ -92,7 +93,7 @@
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
@ -147,17 +148,11 @@
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="stdafx.h" />
|
||||
<ClInclude Include="targetver.h" />
|
||||
<ClCompile Include="..\common\Injector.cpp" />
|
||||
<ClCompile Include="main.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="GloSC_Watchdog.cpp" />
|
||||
<ClCompile Include="stdafx.cpp">
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
<ClInclude Include="..\common\Injector.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
|
@ -15,19 +15,16 @@
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="stdafx.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="targetver.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClCompile Include="main.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\common\Injector.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="stdafx.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="GloSC_Watchdog.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClInclude Include="..\common\Injector.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
Binary file not shown.
@ -25,6 +25,7 @@ limitations under the License.
|
||||
#include "../common/Injector.h"
|
||||
#include <tlhelp32.h>
|
||||
#include <QProcess>
|
||||
#include <QDir>
|
||||
|
||||
SteamTarget::SteamTarget(int& argc, char** argv) : QApplication(argc, argv)
|
||||
{
|
||||
@ -43,7 +44,7 @@ void SteamTarget::init()
|
||||
if (hook_steam_ && !use_desktop_conf_)
|
||||
Injector::hookSteam();
|
||||
|
||||
launchDebug();
|
||||
launchWatchdog();
|
||||
|
||||
}
|
||||
|
||||
@ -154,14 +155,10 @@ void SteamTarget::initOverlayEvents()
|
||||
}
|
||||
}
|
||||
|
||||
void SteamTarget::launchDebug() const
|
||||
void SteamTarget::launchWatchdog() const
|
||||
{
|
||||
|
||||
|
||||
QProcess proc;
|
||||
proc.startDetached("explorer.exe", QStringList() << "C:\\Windows\\system32\\cmd.exe");
|
||||
|
||||
|
||||
const QString watchDogPath = QDir::toNativeSeparators(applicationDirPath()) + "\\GloSC_Watchdog.exe";
|
||||
QProcess::startDetached("explorer.exe", QStringList() << watchDogPath);
|
||||
}
|
||||
|
||||
|
||||
|
@ -45,7 +45,7 @@ private:
|
||||
void read_ini();
|
||||
void initOverlayEvents();
|
||||
|
||||
void launchDebug() const;
|
||||
void launchWatchdog() const;
|
||||
|
||||
TargetOverlay target_overlay_;
|
||||
VirtualControllerThread controller_thread_;
|
||||
|
@ -131,6 +131,7 @@
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\common\Injector.cpp" />
|
||||
<ClCompile Include="GeneratedFiles\Debug\moc_SteamTarget.cpp">
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||
@ -149,7 +150,6 @@
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Injector.cpp" />
|
||||
<ClCompile Include="main.cpp" />
|
||||
<ClCompile Include="SteamTarget.cpp" />
|
||||
<ClCompile Include="TargetOverlay.cpp" />
|
||||
@ -177,7 +177,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\common\common_hookfuns.h" />
|
||||
<ClInclude Include="Injector.h" />
|
||||
<ClInclude Include="..\common\Injector.h" />
|
||||
<ClInclude Include="OverlayHookFunction.h" />
|
||||
<ClInclude Include="resource.h" />
|
||||
<CustomBuild Include="SteamTarget.h">
|
||||
|
@ -61,7 +61,7 @@
|
||||
<ClCompile Include="TargetOverlay.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Injector.cpp">
|
||||
<ClCompile Include="..\common\Injector.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
@ -89,7 +89,7 @@
|
||||
<ClInclude Include="OverlayHookFunction.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Injector.h">
|
||||
<ClInclude Include="..\common\Injector.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
|
Loading…
Reference in New Issue
Block a user