Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Core.Games;
using Core.Packages.Installation.Installers;
using Core.Packages.Installation.Installers;
using Core.Utils;
using PCarsTools;
using PCarsTools.Encryption;
Expand Down Expand Up @@ -27,10 +26,10 @@ public GeneratedBootfilesInstaller(string packageName, string gameInstallationDi

protected override DirectoryInfo Source { get; }

protected override void InstalAllFiles(InstallBody body)
protected override void InstallAllFiles(InstallBody body)
{
GenerateBootfiles();
base.InstalAllFiles(body);
base.InstallAllFiles(body);
}

protected override void InstallFile(RootedPath destinationPath, FileInfo fileInfo)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public override IEnumerable<string> RelativeDirectoryPaths
}
}

protected override void InstalAllFiles(InstallBody body)
protected override void InstallAllFiles(InstallBody body)
{
using var reader = new LibArchiveReader(archivePath, BlockSize);
foreach (var entry in reader.Entries())
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Core.Utils;

namespace Core.Packages.Installation.Installers;
namespace Core.Packages.Installation.Installers;

internal abstract class BaseDirectoryInstaller : BaseInstaller<FileInfo>
{
Expand All @@ -23,7 +21,7 @@ protected BaseDirectoryInstaller(string packageName, int? packageFsHash) :
Source.EnumerateDirectories("*", RecursiveEnumeration)
.Select(_ => Path.GetRelativePath(Source.FullName, _.FullName));

protected override void InstalAllFiles(InstallBody body)
protected override void InstallAllFiles(InstallBody body)
{
foreach (var fileInfo in Source.EnumerateFiles("*", RecursiveEnumeration))
{
Expand Down
6 changes: 3 additions & 3 deletions src/Core/Packages/Installation/Installers/BaseInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Core.Packages.Installation.Installers;
/// <summary>
///
/// </summary>
/// <typeparam name="TPassthrough">Type used by the implementation during the install loop.</typeparam>
/// <typeparam name="TPassthrough">Type used by the implementation during the installation loop.</typeparam>
internal abstract class BaseInstaller<TPassthrough> : IInstaller
{
public string PackageName { get; }
Expand Down Expand Up @@ -50,7 +50,7 @@ public void Install(IInstaller.Destination destination, IBackupStrategy backupSt
}
Installed = IInstallation.State.PartiallyInstalled;

InstalAllFiles((pathInPackage, context) =>
InstallAllFiles((pathInPackage, context) =>
{
var (destPath, removeFile) = NeedsRemoving(destination(pathInPackage));

Expand Down Expand Up @@ -85,7 +85,7 @@ public void Install(IInstaller.Destination destination, IBackupStrategy backupSt
/// Installation loop.
/// </summary>
/// <param name="body">Function to call for each file.</param>
protected abstract void InstalAllFiles(InstallBody body);
protected abstract void InstallAllFiles(InstallBody body);

protected delegate void InstallBody(string relativePathInMod, TPassthrough context);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ internal StaticFilesInstaller(IFileSystem fs, string packageName, int? packageFs
this.files = files;
}

protected override void InstalAllFiles(InstallBody body)
protected override void InstallAllFiles(InstallBody body)
{
foreach (var file in files)
{
Expand Down
Loading