Skip to content

Commit

Permalink
Merge pull request #1063 from shananas/Dropdown
Browse files Browse the repository at this point in the history
Steam Support Stuff
  • Loading branch information
Oathseeker authored Jun 18, 2024
2 parents 1234f97 + 898a51d commit c48db72
Show file tree
Hide file tree
Showing 6 changed files with 1,194 additions and 1,332 deletions.
38 changes: 4 additions & 34 deletions OpenKh.Tools.ModsManager/Services/ConfigurationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ private class Config
public string Pcsx2Location { get; internal set; }
public string PcReleaseLocation { get; internal set; }
public string PcReleaseLocationKH3D { get; internal set; }
public string PcReleaseSteamLocation { get; internal set; }
public string PcReleaseSteamLocationKH3D { get; internal set; }
public string PcReleaseLanguage { get; internal set; } = "en";
public string PcReleaseLanguageDT { get; internal set; } = "dt";
public int RegionId { get; internal set; }
public bool PanaceaInstalled { get; internal set; }
public bool ShowConsole { get; internal set; } = false;
Expand All @@ -47,7 +44,7 @@ private class Config
public bool QuickMenu { get; internal set; } = false;
public bool DevView { get; internal set; } = false;
public bool AutoUpdateMods { get; internal set; }
public bool isEGSVersion { get; internal set; } = true;
public string pcVersion { get; internal set; } = "EGS";
public List<string> GamesToExtract { get; internal set; } = new List<string> { "kh2" };
public string LaunchGame { get; internal set; } = "kh2";
public bool DarkMode { get; internal set; } = true;
Expand Down Expand Up @@ -270,24 +267,6 @@ public static string PcReleaseLocationKH3D
_config.Save(ConfigPath);
}
}
public static string PcReleaseSteamLocation
{
get => _config.PcReleaseSteamLocation;
set
{
_config.PcReleaseSteamLocation = value;
_config.Save(ConfigPath);
}
}
public static string PcReleaseSteamLocationKH3D
{
get => _config.PcReleaseSteamLocationKH3D;
set
{
_config.PcReleaseSteamLocationKH3D = value;
_config.Save(ConfigPath);
}
}

public static string PcReleaseLanguage
{
Expand All @@ -298,15 +277,6 @@ public static string PcReleaseLanguage
_config.Save(ConfigPath);
}
}
public static string PcReleaseLanguageDT
{
get => _config.PcReleaseLanguageDT;
set
{
_config.PcReleaseLanguageDT = value;
_config.Save(ConfigPath);
}
}

public static int RegionId
{
Expand Down Expand Up @@ -381,12 +351,12 @@ public static bool AutoUpdateMods
_config.Save(ConfigPath);
}
}
public static bool IsEGSVersion
public static string PCVersion
{
get => _config.isEGSVersion;
get => _config.pcVersion;
set
{
_config.isEGSVersion = value;
_config.pcVersion = value;
_config.Save(ConfigPath);
}
}
Expand Down
6 changes: 3 additions & 3 deletions OpenKh.Tools.ModsManager/Services/ModsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,13 @@ public static void InstallModFromLua(string fileName)
switch (_lineLead)
{
case "LUAGUI_NAME":
modName = _lineGib;
modName = "\"" + _lineGib + "\"";
break;
case "LUAGUI_AUTH":
modAuthor = _lineGib;
modAuthor = "\"" + _lineGib + "\"";
break;
case "LUAGUI_DESC":
modDescription = _lineGib;
modDescription = "\"" + _lineGib + "\"";
break;
}

Expand Down
Loading

0 comments on commit c48db72

Please sign in to comment.