mirror of
https://github.com/Strongleong/ScrapModLoader.git
synced 2024-08-15 00:03:19 +00:00
Added check for minimal launcher version
This commit is contained in:
parent
515aa519a4
commit
9deb717eea
1 changed files with 4 additions and 1 deletions
|
@ -12,6 +12,7 @@ namespace ScrapModLoader
|
||||||
public String ScraplandPath { get; set; }
|
public String ScraplandPath { get; set; }
|
||||||
public String ScraplandRemasteredPath { get; set; }
|
public String ScraplandRemasteredPath { get; set; }
|
||||||
public String SelectedGameVersion { get; set; }
|
public String SelectedGameVersion { get; set; }
|
||||||
|
public String LauncherVersion { get; set; }
|
||||||
|
|
||||||
public ModsLauncher()
|
public ModsLauncher()
|
||||||
{
|
{
|
||||||
|
@ -19,6 +20,7 @@ namespace ScrapModLoader
|
||||||
ScraplandPath = Settings.Default.ScraplandPath;
|
ScraplandPath = Settings.Default.ScraplandPath;
|
||||||
ScraplandRemasteredPath = Settings.Default.ScraplandRemasteredPath;
|
ScraplandRemasteredPath = Settings.Default.ScraplandRemasteredPath;
|
||||||
SelectedGameVersion = "0.0";
|
SelectedGameVersion = "0.0";
|
||||||
|
LauncherVersion = "0.3";
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ScanMods()
|
public void ScanMods()
|
||||||
|
@ -87,7 +89,8 @@ namespace ScrapModLoader
|
||||||
foreach (ScrapMod mod in Mods)
|
foreach (ScrapMod mod in Mods)
|
||||||
{
|
{
|
||||||
// TODO: Warning about not loading mods that not supports selected version
|
// TODO: Warning about not loading mods that not supports selected version
|
||||||
if (!mod.SupportedGameVersions.Contains(SelectedGameVersion))
|
if (!mod.SupportedGameVersions.Contains(SelectedGameVersion) ||
|
||||||
|
Single.Parse(mod.RequiredLauncher) < Single.Parse(LauncherVersion))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (mod.Checked)
|
if (mod.Checked)
|
||||||
|
|
Loading…
Reference in a new issue