File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
MaiChartManager/Controllers Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -44,15 +44,17 @@ public GameModInfo GetGameModInfo()
4444 public AquaMai . Config GetAquaMaiConfig ( )
4545 {
4646 var path = Path . Combine ( StaticSettings . GamePath , "AquaMai.toml" ) ;
47- return System . IO . File . Exists ( path )
47+ var res = System . IO . File . Exists ( path )
4848 ? TomletMain . To < AquaMai . Config > ( System . IO . File . ReadAllText ( path ) )
49- : new AquaMai . Config ( )
50- {
51- Cheat = new AquaMai . Config . CheatConfig ( ) ,
52- Fix = new AquaMai . Config . FixConfig ( ) ,
53- Performance = new AquaMai . Config . PerformanceConfig ( ) ,
54- UX = new AquaMai . Config . UXConfig ( )
55- } ;
49+ : new AquaMai . Config ( ) ;
50+
51+ res . Cheat ??= new AquaMai . Config . CheatConfig ( ) ;
52+ res . Fix ??= new AquaMai . Config . FixConfig ( ) ;
53+ res . Performance ??= new AquaMai . Config . PerformanceConfig ( ) ;
54+ res . UX ??= new AquaMai . Config . UXConfig ( ) ;
55+ res . Utils ??= new AquaMai . Config . UtilsConfig ( ) ;
56+
57+ return res ;
5658 }
5759
5860 [ HttpPut ]
You can’t perform that action at this time.
0 commit comments