Skip to content

Commit 9cbe723

Browse files
committed
Fix #791
1 parent 03705e2 commit 9cbe723

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

toolsrc/MetahookInstaller/MetahookInstallerAvalonia/ViewModels/MainViewModel.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,6 @@ public class ModInfo(string name, string directory, uint appid, string path)
458458
private string _directory = directory;
459459
private uint _appid = appid;
460460
private string? _path = path;
461-
private readonly string _installpath = Path.Combine(path, directory);
462461
private readonly Bitmap? _icon = (!string.IsNullOrEmpty(Path.Combine(path, directory, "game.ico")) &&
463462
File.Exists(Path.Combine(path, directory, "game.ico"))) ? new Bitmap(Path.Combine(path, directory, "game.ico")) : null;
464463
private bool _readonly = true;
@@ -467,7 +466,7 @@ public class ModInfo(string name, string directory, uint appid, string path)
467466
public string Directory { get => _directory; set => _directory = value; }
468467
public uint AppID { get => _appid; set => _appid = value; }
469468
public string? GamePath { get => _path; set => _path = value; }
470-
public string InstallPath { get => _installpath; }
469+
public string InstallPath { get => Path.Combine(_path ?? "", _directory); }
471470
public Bitmap? GameIcon => _icon;
472471
public bool ReadOnly { get => _readonly; set => _readonly = value; }
473472
}

0 commit comments

Comments
 (0)