@@ -13,11 +13,11 @@ namespace UnityExplorer.Loader.STANDALONE
13
13
public class StandaloneConfigHandler : ConfigHandler
14
14
{
15
15
internal static IniDataParser _parser ;
16
- internal static string INI_PATH ;
16
+ internal static string CONFIG_PATH ;
17
17
18
18
public override void Init ( )
19
19
{
20
- INI_PATH = Path . Combine ( ExplorerCore . Loader . ConfigFolder , "config.ini" ) ;
20
+ CONFIG_PATH = Path . Combine ( ExplorerCore . Loader . ExplorerFolder , "config.ini" ) ;
21
21
_parser = new IniDataParser ( ) ;
22
22
_parser . Configuration . CommentString = "#" ;
23
23
}
@@ -49,10 +49,10 @@ public bool TryLoadConfig()
49
49
{
50
50
try
51
51
{
52
- if ( ! File . Exists ( INI_PATH ) )
52
+ if ( ! File . Exists ( CONFIG_PATH ) )
53
53
return false ;
54
54
55
- string ini = File . ReadAllText ( INI_PATH ) ;
55
+ string ini = File . ReadAllText ( CONFIG_PATH ) ;
56
56
57
57
var data = _parser . Parse ( ini ) ;
58
58
@@ -97,10 +97,10 @@ public override void SaveConfig()
97
97
foreach ( var entry in ConfigManager . ConfigElements )
98
98
sec . AddKey ( entry . Key , entry . Value . BoxedValue . ToString ( ) ) ;
99
99
100
- if ( ! Directory . Exists ( ExplorerCore . Loader . ConfigFolder ) )
101
- Directory . CreateDirectory ( ExplorerCore . Loader . ConfigFolder ) ;
100
+ if ( ! Directory . Exists ( ExplorerCore . Loader . ExplorerFolder ) )
101
+ Directory . CreateDirectory ( ExplorerCore . Loader . ExplorerFolder ) ;
102
102
103
- File . WriteAllText ( INI_PATH , data . ToString ( ) ) ;
103
+ File . WriteAllText ( CONFIG_PATH , data . ToString ( ) ) ;
104
104
}
105
105
}
106
106
}
0 commit comments