mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add nullability to the two programs (not enforced)
This commit is contained in:
@@ -23,7 +23,7 @@ namespace RombaSharp.Features
|
||||
LongDescription = @"For each specified DAT file it creates the torrentzip files in the specified
|
||||
output dir. The files will be placed in the specified location using a folder
|
||||
structure according to the original DAT master directory tree structure.";
|
||||
Features = new Dictionary<string, Feature>();
|
||||
Features = [];
|
||||
|
||||
// Common Features
|
||||
AddCommonFeatures();
|
||||
@@ -35,7 +35,7 @@ structure according to the original DAT master directory tree structure.";
|
||||
AddFeature(SubworkersInt32Input);
|
||||
}
|
||||
|
||||
public override bool ProcessFeatures(Dictionary<string, Feature> features)
|
||||
public override bool ProcessFeatures(Dictionary<string, Feature?> features)
|
||||
{
|
||||
// If the base fails, just fail out
|
||||
if (!base.ProcessFeatures(features))
|
||||
@@ -43,7 +43,7 @@ structure according to the original DAT master directory tree structure.";
|
||||
|
||||
// Get feature flags
|
||||
bool copy = GetBoolean(features, CopyValue);
|
||||
string outdat = GetString(features, OutStringValue);
|
||||
string? outdat = GetString(features, OutStringValue);
|
||||
|
||||
// Verify the filenames
|
||||
Dictionary<string, string> foundDats = GetValidDats(Inputs);
|
||||
@@ -67,7 +67,7 @@ structure according to the original DAT master directory tree structure.";
|
||||
outputFolder.Ensure(create: true);
|
||||
|
||||
// Get all online depots
|
||||
List<string> onlineDepots = _depots.Where(d => d.Value.Item2).Select(d => d.Key).ToList();
|
||||
List<string> onlineDepots = _depots!.Where(d => d.Value.Item2).Select(d => d.Key).ToList();
|
||||
|
||||
// Now scan all of those depots and rebuild
|
||||
Rebuilder.RebuildDepot(
|
||||
|
||||
Reference in New Issue
Block a user