Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxgurugamer committed Nov 15, 2019
1 parent 28d2ce7 commit 2796e9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ModuleBounce/InstallChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,16 @@ internal class InstallChecker : MonoBehaviour
{
private const string MODNAME = "SXT";
private const string FOLDERNAME = "SXT";
private const string EXPECTEDPATH = FOLDERNAME + "/PlugIns";
private const string EXPECTEDPATH = FOLDERNAME + "/Plugns";

protected void Start()
{
// Search for this mod's DLL existing in the wrong location. This will also detect duplicate copies because only one can be in the right place.
var assemblies = AssemblyLoader.loadedAssemblies.Where(a => a.assembly.GetName().Name == Assembly.GetExecutingAssembly().GetName().Name).Where(a => a.url != EXPECTEDPATH);
if (assemblies.Any())
{
var badPaths = assemblies.Select(a => a.path).Select(p => Uri.UnescapeDataString(new Uri(Path.GetFullPath(KSPUtil.ApplicationRootPath)).MakeRelativeUri(new Uri(p)).ToString().Replace('/', Path.DirectorySeparatorChar)));

PopupDialog.SpawnPopupDialog
(
new Vector2(0.5f, 0.5f),
Expand Down

0 comments on commit 2796e9e

Please sign in to comment.