File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434// You can specify all the values or you can default the Build and Revision Numbers
3535// by using the '*' as shown below:
3636// [assembly: AssemblyVersion("1.0.*")]
37- [ assembly: AssemblyVersion ( "18.05.4 .*" ) ]
37+ [ assembly: AssemblyVersion ( "18.05.5 .*" ) ]
3838[ assembly: AssemblyFileVersion ( "1.0.0.0" ) ]
Original file line number Diff line number Diff line change 44using System . Collections . Generic ;
55using System . IO ;
66using System . Linq ;
7+ using System . Reflection ;
78using System . Text ;
89using System . Text . RegularExpressions ;
910
@@ -14,8 +15,10 @@ public class LocalFinder : GameFinder {
1415 public override int Priority => - 1000 ;
1516
1617 public override string FindGameDir ( string gameid ) {
17- string path = Environment . CurrentDirectory ;
18- if ( File . Exists ( Path . Combine ( path , gameid ) ) )
18+ string path ;
19+ if ( File . Exists ( Path . Combine ( path = Environment . CurrentDirectory , gameid ) ) )
20+ return path ;
21+ if ( File . Exists ( Path . Combine ( path = Path . GetDirectoryName ( Assembly . GetExecutingAssembly ( ) . Location ) , gameid ) ) )
1922 return path ;
2023 return null ;
2124 }
Original file line number Diff line number Diff line change @@ -123,9 +123,6 @@ public void Uninstall() {
123123 public void DownloadMod ( string url ) {
124124 Console . WriteLine ( "Starting mod download" ) ;
125125
126- while ( string . IsNullOrEmpty ( Info . CurrentGamePath ) )
127- Thread . Sleep ( 100 ) ;
128-
129126 Uri uri = new Uri ( url ) ;
130127
131128 string modRoot = Info . ModsDir ;
You can’t perform that action at this time.
0 commit comments