Skip to content

Commit 1d21408

Browse files
committed
feat(steam): Add steam files to detect game as a Steam install
1 parent 6e423a9 commit 1d21408

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

Hi3Helper.Plugin.Wuwa/Management/WuwaGameManager.cs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ protected override bool IsInstalled
115115
Path.Combine(CurrentGameInstallPath!,
116116
"Client\\Binaries\\Win64\\ThirdParty\\KrPcSdk_Global\\KRSDKRes\\KRSDK.bin"));
117117
string executablePath5 = Path.Combine(CurrentGameInstallPath ?? string.Empty,
118-
Path.Combine(CurrentGameInstallPath!,
119-
"app-game-config.json"));
118+
Path.Combine(CurrentGameInstallPath!, "app-game-config.json"));
120119
return File.Exists(executablePath1) &&
121120
File.Exists(executablePath2) &&
122121
File.Exists(executablePath3) &&
@@ -125,6 +124,23 @@ protected override bool IsInstalled
125124
}
126125
}
127126

127+
protected bool IsSteamInstall
128+
{
129+
get
130+
{
131+
string executablePath1 = Path.Combine(CurrentGameInstallPath ?? string.Empty,
132+
"Client\\Binaries\\Win64\\ThirdParty\\KrPcSdk_Global\\installscript.vdf");
133+
string executablePath2 = Path.Combine(CurrentGameInstallPath ?? string.Empty,
134+
"\\Client\\Binaries\\Win64\\AntiCheatExpert\\SGuard\\x64\\SGuard64.exe");
135+
string executablePath3 = Path.Combine(CurrentGameInstallPath ?? string.Empty,
136+
"\\Client\\Binaries\\Win64\\ThirdParty\\KrPcSdk_Global\\KRSDK.dll");
137+
138+
return File.Exists(executablePath1) &&
139+
File.Exists(executablePath2) &&
140+
File.Exists(executablePath3);
141+
}
142+
}
143+
128144
public override void Dispose()
129145
{
130146
if (IsDisposed)

0 commit comments

Comments
 (0)