File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ public class LbpPS3PatchPipeline : Pipeline
12
12
13
13
public override string GuideLink => "https://docs.littlebigrefresh.com/ps3" ;
14
14
15
+ public override IEnumerable < string > GameNameFilters => [ "littlebigplanet" , "lbp" ] ;
16
+
15
17
protected override List < Type > StepTypes =>
16
18
[
17
19
// Info gathering stage
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ public abstract class Pipeline
25
25
public AutoDiscoverResponse ? AutoDiscover { get ; internal set ; }
26
26
27
27
public virtual string ? GuideLink => null ;
28
+
29
+ public virtual IEnumerable < string > GameNameFilters => [ ] ;
28
30
29
31
public PipelineState State { get ; private set ; } = PipelineState . NotStarted ;
30
32
Original file line number Diff line number Diff line change @@ -60,9 +60,12 @@ public override async Task ExecuteAsync(CancellationToken cancellationToken = de
60
60
61
61
if ( isConsole )
62
62
await Task . Delay ( 100 , cancellationToken ) ;
63
-
64
- this . Pipeline . GameList . Add ( game ) ;
63
+
65
64
this . Progress = i ++ / ( float ) games . Count ;
65
+
66
+ List < string > filters = this . Pipeline . GameNameFilters . ToList ( ) ;
67
+ if ( filters . Count <= 0 || filters . Any ( f => game . Name ? . Contains ( f , StringComparison . InvariantCultureIgnoreCase ) ?? false ) )
68
+ this . Pipeline . GameList . Add ( game ) ;
66
69
}
67
70
68
71
this . Pipeline . GameInformation = null ;
Original file line number Diff line number Diff line change 25
25
<s : Boolean x : Key =" /Default/UserDictionary/Words/=fdsa/@EntryIndexedValue" >True</s : Boolean >
26
26
<s : Boolean x : Key =" /Default/UserDictionary/Words/=hellscape/@EntryIndexedValue" >True</s : Boolean >
27
27
<s : Boolean x : Key =" /Default/UserDictionary/Words/=jvyden/@EntryIndexedValue" >True</s : Boolean >
28
+ <s : Boolean x : Key =" /Default/UserDictionary/Words/=littlebigplanet/@EntryIndexedValue" >True</s : Boolean >
28
29
<s : Boolean x : Key =" /Default/UserDictionary/Words/=LITTLEBIGPLANETPS/@EntryIndexedValue" >True</s : Boolean >
29
30
<s : Boolean x : Key =" /Default/UserDictionary/Words/=patchables/@EntryIndexedValue" >True</s : Boolean >
30
31
<s : Boolean x : Key =" /Default/UserDictionary/Words/=Reverify/@EntryIndexedValue" >True</s : Boolean >
You can’t perform that action at this time.
0 commit comments