Skip to content

Commit 118d376

Browse files
committed
Common: fix LAA check for EA/Origin
1 parent dbfbf13 commit 118d376

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

ModAPI.Common/SupportInfo.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,15 @@ public static string GameFullVersionInfoString
9696
return "Game not found";
9797
}
9898

99-
var sporeAppPath = Path.Combine(SporePath.GetSporebinEP1Path(), "SporeApp.exe");
100-
var laaString = LAAUtils.IsLAA(sporeAppPath) ? ", LAA" : "";
99+
// Check if LAA
100+
var laaString = "";
101+
var versionType = GameVersion.DetectVersion(Path.Combine(SporePath.GetSporebinEP1Path(), "SporeApp.exe"));
102+
var exeName = GameVersion.GetExecutableFileName(versionType);
103+
if (exeName != null)
104+
{
105+
var sporeAppPath = Path.Combine(SporePath.GetSporebinEP1Path(), exeName);
106+
laaString = LAAUtils.IsLAA(sporeAppPath) ? ", LAA" : "";
107+
}
101108

102109
return $"{GameVersionString} - {GameVersionTypeString}{laaString}";
103110
}

0 commit comments

Comments
 (0)