File tree 1 file changed +2
-2
lines changed
src/extensions/gamemode_management
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -614,7 +614,7 @@ function init(context: IExtensionContext): boolean {
614
614
context . registerModType = registerModType ;
615
615
616
616
context . registerGameInfoProvider ( 'game-path' , 0 , 1000 ,
617
- [ 'path' ] , ( game : IGame & IDiscoveryResult ) => ( game . path === undefined )
617
+ [ 'path' ] , ( game : IGame & IDiscoveryResult ) => ( game . path == null || typeof game . path !== 'string' )
618
618
? Promise . resolve ( { } )
619
619
: Promise . resolve ( {
620
620
path : { title : 'Path' , value : path . normalize ( game . path ) , type : 'url' } ,
@@ -633,7 +633,7 @@ function init(context: IExtensionContext): boolean {
633
633
const discoveredGames = context . api . store . getState ( ) . settings . gameMode . discovered ;
634
634
let gamePath = getSafe ( discoveredGames , [ instanceIds [ 0 ] , 'path' ] , undefined ) ;
635
635
636
- if ( gamePath !== undefined ) {
636
+ if ( gamePath != null ) {
637
637
if ( ! gamePath . endsWith ( path . sep ) ) {
638
638
gamePath += path . sep ;
639
639
}
You can’t perform that action at this time.
0 commit comments