4
4
// Created : 04-07-2020
5
5
//
6
6
// Last Modified By : Mario
7
- // Last Modified On : 03-04-2024
7
+ // Last Modified On : 01-20-2025
8
8
// ***********************************************************************
9
9
// <copyright file="ModBaseService.cs" company="Mario">
10
10
// Mario
@@ -382,7 +382,7 @@ protected virtual IPriorityDefinitionResult EvalDefinitionPriorityInternal(IEnum
382
382
// Using FIOS or LIOS?
383
383
case > 1 when isFios :
384
384
{
385
- var ordered = uniqueDefinitions . OrderBy ( p => Path . GetFileNameWithoutExtension ( p . FileName ) , StringComparer . Ordinal ) ;
385
+ var ordered = uniqueDefinitions . GroupBy ( p => p . FileName ) . Select ( p => p . LastOrDefault ( ) ) . OrderBy ( p => Path . GetFileNameWithoutExtension ( p ? . FileName ) , StringComparer . Ordinal ) ;
386
386
var definition = ordered . First ( ) ;
387
387
result . Definition = definition . Definition ;
388
388
result . FileName = definition . FileName ;
@@ -392,7 +392,7 @@ protected virtual IPriorityDefinitionResult EvalDefinitionPriorityInternal(IEnum
392
392
}
393
393
case > 1 :
394
394
{
395
- var ordered = uniqueDefinitions . OrderBy ( p => Path . GetFileNameWithoutExtension ( p . FileName ) , StringComparer . Ordinal ) ;
395
+ var ordered = uniqueDefinitions . GroupBy ( p => p . FileName ) . Select ( p => p . LastOrDefault ( ) ) . OrderBy ( p => Path . GetFileNameWithoutExtension ( p ? . FileName ) , StringComparer . Ordinal ) ;
396
396
var definition = ordered . Last ( ) ;
397
397
result . Definition = definition . Definition ;
398
398
result . FileName = definition . FileName ;
@@ -581,8 +581,7 @@ protected virtual IEnumerable<IMod> GetInstalledModsInternal(string game, bool i
581
581
/// <param name="game">The game.</param>
582
582
/// <param name="ignorePatchMods">if set to <c>true</c> [ignore patch mods].</param>
583
583
/// <returns>IEnumerable<IMod>.</returns>
584
- /// <exception cref="ArgumentNullException">nameof(game)</exception>
585
- /// <exception cref="System.ArgumentNullException">game</exception>
584
+ /// <exception cref="System.ArgumentNullException"></exception>
586
585
protected virtual IEnumerable < IMod > GetInstalledModsInternal ( IGame game , bool ignorePatchMods )
587
586
{
588
587
ArgumentNullException . ThrowIfNull ( game ) ;
0 commit comments