mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Make match sets immutable
This commit is contained in:
@@ -176,6 +176,7 @@
|
||||
- Simplify DIC DMI location finding
|
||||
- Move track full matching to separate loop
|
||||
- Fix... something with Linux publish script
|
||||
- Make match sets immutable
|
||||
|
||||
### 3.1.9a (2024-05-21)
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ namespace MPF.Frontend.Tools
|
||||
|
||||
// Setup the checks
|
||||
bool allFound = true;
|
||||
List<List<int>> foundIdSets = [];
|
||||
List<int[]> foundIdSets = [];
|
||||
|
||||
// Loop through all of the hashdata to find matching IDs
|
||||
resultProgress?.Report(ResultEventArgs.Success("Finding disc matches on Redump..."));
|
||||
@@ -234,7 +234,7 @@ namespace MPF.Frontend.Tools
|
||||
resultProgress?.Report(ResultEventArgs.Failure(result));
|
||||
|
||||
// Add the found IDs to the map
|
||||
foundIdSets.Add(foundIds ?? []);
|
||||
foundIdSets.Add(foundIds?.ToArray() ?? []);
|
||||
|
||||
// Ensure that all tracks are found
|
||||
allFound &= singleFound;
|
||||
@@ -250,7 +250,7 @@ namespace MPF.Frontend.Tools
|
||||
// First track is always all IDs
|
||||
if (fullyMatchedIDs == null)
|
||||
{
|
||||
fullyMatchedIDs = set;
|
||||
fullyMatchedIDs = [.. set];
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user