wabbajack/Wabbajack.Services.OSIntegrated/StubbedGameLocator.cs

36 lines
864 B
C#
Raw Normal View History

2021-10-13 03:59:54 +00:00
using Wabbajack.Downloaders.GameFile;
2021-09-27 12:42:46 +00:00
using Wabbajack.DTOs;
using Wabbajack.Installer;
using Wabbajack.Paths;
using Wabbajack.Paths.IO;
namespace Wabbajack.Services.OSIntegrated
{
public class StubbedGameLocator : IGameLocator
{
private readonly TemporaryPath _location;
private readonly TemporaryFileManager _manager;
public StubbedGameLocator(TemporaryFileManager manager)
{
_manager = manager;
_location = manager.CreateFolder();
}
public AbsolutePath GameLocation(Game game)
{
return _location.Path;
}
public bool IsInstalled(Game game)
{
return true;
}
public bool TryFindLocation(Game game, out AbsolutePath path)
{
path = _location.Path;
return true;
}
}
}