mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fixed bad steam lib paths
This commit is contained in:
parent
2044a6728a
commit
8de6c9d239
@ -35,7 +35,6 @@ namespace Wabbajack.Common
|
|||||||
|
|
||||||
private string SteamConfig => Path.Combine(SteamPath, "config", "config.vdf");
|
private string SteamConfig => Path.Combine(SteamPath, "config", "config.vdf");
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
public SteamHandler(bool init)
|
public SteamHandler(bool init)
|
||||||
{
|
{
|
||||||
var steamKey = Registry.CurrentUser.OpenSubKey(SteamRegKey);
|
var steamKey = Registry.CurrentUser.OpenSubKey(SteamRegKey);
|
||||||
@ -43,12 +42,6 @@ namespace Wabbajack.Common
|
|||||||
if(!init) return;
|
if(!init) return;
|
||||||
LoadInstallFolders();
|
LoadInstallFolders();
|
||||||
LoadAllSteamGames();
|
LoadAllSteamGames();
|
||||||
=======
|
|
||||||
public SteamHandler()
|
|
||||||
{
|
|
||||||
var steamKey = Registry.CurrentUser.OpenSubKey(SteamRegKey);
|
|
||||||
SteamPath = steamKey?.GetValue("SteamPath").ToString();
|
|
||||||
>>>>>>> Created SteamHandler
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -71,13 +64,9 @@ namespace Wabbajack.Common
|
|||||||
File.ReadLines(SteamConfig, Encoding.UTF8).Do(l =>
|
File.ReadLines(SteamConfig, Encoding.UTF8).Do(l =>
|
||||||
{
|
{
|
||||||
if (!l.Contains("BaseInstallFolder_")) return;
|
if (!l.Contains("BaseInstallFolder_")) return;
|
||||||
<<<<<<< HEAD
|
|
||||||
var s = GetVdfValue(l);
|
var s = GetVdfValue(l);
|
||||||
s = Path.Combine(s, "steamapps");
|
s = Path.Combine(s, "steamapps");
|
||||||
paths.Add(s);
|
paths.Add(s);
|
||||||
=======
|
|
||||||
paths.Add(GetVdfValue(l));
|
|
||||||
>>>>>>> Created SteamHandler
|
|
||||||
});
|
});
|
||||||
|
|
||||||
InstallFolders = paths;
|
InstallFolders = paths;
|
||||||
|
Loading…
Reference in New Issue
Block a user