@@ -19,7 +19,7 @@ public class UserSettings : IUserSettings
1919
2020 public string MinecraftPath { get ; private set ; }
2121 public string ModPacksPath { get ; private set ; }
22- public string ModPacksFilePath { get ; }
22+ public string ModPacksFile { get ; }
2323
2424 public UserSettings ( IFileManager fileManager , IConfiguration config )
2525 {
@@ -31,7 +31,7 @@ public UserSettings(IFileManager fileManager, IConfiguration config)
3131
3232 MinecraftPath = string . Format ( settings . DeafultMinecraftPath , Environment . GetFolderPath ( Environment . SpecialFolder . ApplicationData ) ) ;
3333 ModPacksPath = string . Format ( settings . DefaultModPacksPath , MinecraftPath ) ;
34- ModPacksFilePath = string . Format ( settings . DefaultModPacksFilePath , ModPacksPath ) ;
34+ ModPacksFile = string . Format ( settings . ModPacksFile , ModPacksPath ) ;
3535 }
3636
3737 public async Task Initialize ( )
@@ -41,17 +41,17 @@ public async Task Initialize()
4141 Directory . CreateDirectory ( _appPath ) ;
4242 }
4343
44- if ( ! Directory . Exists ( ModPacksFilePath ) )
44+ if ( ! Directory . Exists ( ModPacksPath ) )
4545 {
46- Directory . CreateDirectory ( ModPacksFilePath ) ;
46+ Directory . CreateDirectory ( ModPacksPath ) ;
4747 }
4848
4949 var settings = await _fileManager . ReadFile < UserSettings > ( _settingsFile ) ;
5050
5151 if ( settings != null )
5252 {
5353 MinecraftPath = settings . MinecraftPath ;
54- ModPacksPath = settings . ModPacksFilePath ;
54+ ModPacksPath = settings . ModPacksPath ;
5555 }
5656 }
5757
0 commit comments