Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions ModAPI.Common/SporePath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,19 +222,21 @@ private static object GetFromRegistry(string keyName, string valueName)
/// </summary>
private static string[] GetRegistryKeySuffixes(Game game)
{
// The registry paths will be checked in the order set here
// This is usually irrelevant, as we deter users from having multiple installs, but Steam tries to overwrite registry paths (silently "fixing" issues from multiple installs), so we list Steam paths first as to pretend like it's the only one installed
switch (game)
{
case Game.GalacticAdventures:
return new[] { "Electronic Arts\\SPORE_EP1" };
case Game.Spore:
return new[] { "Electronic Arts\\SPORE" };
case Game.CreepyAndCute:
// Disc/Origin/EA use the former, Steam/GOG use the latter, game hardcodes both
return new[] { "Electronic Arts\\SPORE(TM) Creepy & Cute Parts Pack", "Electronic Arts\\SPORE Creepy and Cute Parts Pack" };
// Steam/GOG use the former, Disc/Origin/EA use the latter, game hardcodes both
return new[] { "Electronic Arts\\SPORE Creepy and Cute Parts Pack", "Electronic Arts\\SPORE(TM) Creepy & Cute Parts Pack" };
default:
return new string[] { };
}
}

}
}
}
Loading