Skip to content

Commit 78b8f12

Browse files
committed
"Fixed" an issue with a couple of people who thought it'd be funny to move their sranipal runtime .exe install dir around because why not
1 parent 551a6f5 commit 78b8f12

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

SRanipalExtTrackingModule/SRanipalTrackingInterface.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,21 @@ public override (bool eyeSuccess, bool expressionSuccess) Initialize(bool eyeAva
3939

4040
if (srInstallDir == null)
4141
{
42-
Logger.LogError("SRanipalExtTrackingModule: SRanipal not installed.");
43-
return (false, false);
42+
Logger.LogError("Bruh, SRanipal not installed. Assuming default path");
43+
srInstallDir = "C:\\Program Files\\VIVE\\SRanipal\\sr_runtime.exe";
4444
}
4545

4646
// Get the currently installed sr_runtime version. If it's above 1.3.6.* then we use ModuleLibs\\New
47-
var srRuntimeVer = FileVersionInfo.GetVersionInfo(srInstallDir).FileVersion;
47+
var srRuntimeVer = "1.3.1.1"; // We'll assume 1.3.1.1 if we can't find the version.
48+
try
49+
{
50+
srRuntimeVer = FileVersionInfo.GetVersionInfo(srInstallDir).FileVersion;
51+
}
52+
catch
53+
{
54+
Logger.LogDebug("Smh you've got a bad install of SRanipal. Because you're like 97% likely to complain in the discord about this, I'll just assume you're using 1.3.1.1");
55+
Logger.LogDebug("I swear to god if you complain about this and have also fucked around with the sranipal install dir and have a version higher than 1.3.6.* I will ban you faster than my father dropped me as a child do you understand");
56+
}
4857

4958
Logger.LogInformation($"SRanipalExtTrackingModule: SRanipal version: {srRuntimeVer}");
5059

0 commit comments

Comments
 (0)