Skip to content

Commit

Permalink
move to Installation path
Browse files Browse the repository at this point in the history
  • Loading branch information
Bod9001 committed Nov 12, 2023
1 parent c416ee4 commit e1d76db
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions UnitystationLauncher/Services/CodeScanService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class CodeScanService : ICodeScanService
private readonly IAssemblyChecker _IAssemblyChecker;
private readonly IEnvironmentService _environmentService;
private readonly IGoodFileService _iGoodFileService;

private readonly IPreferencesService _preferencesService;

private const string Managed = "Managed";
private const string Plugins = "Plugins";
Expand All @@ -26,11 +26,13 @@ public class CodeScanService : ICodeScanService



public CodeScanService(IAssemblyChecker assemblyChecker, IEnvironmentService environmentService, IGoodFileService iGoodFileService)
public CodeScanService(IAssemblyChecker assemblyChecker, IEnvironmentService environmentService, IGoodFileService iGoodFileService,
IPreferencesService ipreferencesService)
{
_IAssemblyChecker = assemblyChecker;
_environmentService = environmentService;
_iGoodFileService = iGoodFileService;
_preferencesService = ipreferencesService;
}


Expand All @@ -52,7 +54,7 @@ public int GetHashCode(FileInfo obj)
public async Task<bool> OnScan(ZipArchive archive, string targetDirectory, string goodFileVersion, Action<string> info, Action<string> errors)
{
// TODO: Enable extraction cancelling
var root = new DirectoryInfo(_environmentService.GetUserdataDirectory());
var root = new DirectoryInfo( _preferencesService.GetPreferences().InstallationPath);

DirectoryInfo stagingDirectory = root.CreateSubdirectory("UnsafeBuildZipDirectory");
DirectoryInfo processingDirectory = root.CreateSubdirectory("UnsafeBuildProcessing");
Expand Down

0 comments on commit e1d76db

Please sign in to comment.