File tree Expand file tree Collapse file tree
HedgeModManager.UI/ViewModels
Libraries/HedgeModManager.Steam Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ public async Task LoadGameAsync()
291291 Logger . Debug ( $ " Root: { game . Root } ") ;
292292 Logger . Debug ( $ " Exec: { game . Executable } ") ;
293293 Logger . Debug ( $ " N OS: { game . NativeOS } ") ;
294+ Logger . Debug ( $ " PFX: { game . PrefixRoot } ") ;
294295 Logger . Debug ( $ " Type: { game . GetType ( ) . Name } ") ;
295296 await game . InitializeAsync ( ) ;
296297 Logger . Debug ( $ "Initialised game") ;
Original file line number Diff line number Diff line change @@ -105,12 +105,21 @@ public List<SteamGame> Locate()
105105 var folders = ValveDataFile . FromFile ( Path . Combine ( library , "steamapps" , "libraryfolders.vdf" ) ) ;
106106 var compatDirs = new List < string > ( ) ;
107107
108- if ( OperatingSystem . IsLinux ( ) )
108+ foreach ( var folder in folders )
109109 {
110- var compatDataDir = Path . Combine ( library , "steamapps" , "compatdata" ) ;
111- if ( Directory . Exists ( compatDataDir ) )
110+ var path = folder . GetCaseInsensitive ( "path" ) . GetString ( ) ;
111+ if ( string . IsNullOrEmpty ( path ) )
112112 {
113- compatDirs . Add ( compatDataDir ) ;
113+ continue ;
114+ }
115+
116+ if ( OperatingSystem . IsLinux ( ) )
117+ {
118+ var compatDataDir = Path . Combine ( path , "steamapps" , "compatdata" ) ;
119+ if ( Directory . Exists ( compatDataDir ) )
120+ {
121+ compatDirs . Add ( compatDataDir ) ;
122+ }
114123 }
115124 }
116125
You can’t perform that action at this time.
0 commit comments