@@ -12,7 +12,6 @@ public class Path
1212 private static readonly string ArcaeaImageRoot = BaseDirectory + "/Andreal/Arcaea/" ;
1313 private static readonly string ArcaeaSourceRoot = BaseDirectory + "/Andreal/Source/" ;
1414 private static readonly string AndreaOtherRoot = BaseDirectory + "/Andreal/Other/" ;
15- private static readonly string PjskImageRoot = BaseDirectory + "/Andreal/Pjsk/" ;
1615 public static readonly string AndreaConfigRoot = BaseDirectory + "/Andreal/Config/" ;
1716 public static readonly string TempImageRoot = BaseDirectory + "/Andreal/TempImage/" ;
1817
@@ -24,8 +23,6 @@ public class Path
2423
2524 public static readonly Path RobotReply = new ( AndreaConfigRoot + "replytemplate.json" ) ;
2625
27- public static readonly Path PjskAlias = new ( AndreaConfigRoot + "pjskalias.json" ) ;
28-
2926 public static readonly Path ArcaeaConstListBg = new ( ArcaeaSourceRoot + "ConstList.jpg" ) ;
3027
3128 public static readonly Path ArcaeaDivider = new ( ArcaeaSourceRoot + "Divider.png" ) ;
@@ -44,6 +41,8 @@ public class Path
4441
4542 private readonly string _rawpath ;
4643
44+ private FileInfo ? _fileInfo ;
45+
4746 static Path ( )
4847 {
4948 if ( ! Directory . Exists ( ArcaeaBackgroundRoot ) ) Directory . CreateDirectory ( ArcaeaBackgroundRoot ) ;
@@ -57,14 +56,6 @@ static Path()
5756 Directory . CreateDirectory ( AndreaConfigRoot + "BotInfo/" ) ;
5857 }
5958
60- if ( ! Directory . Exists ( PjskImageRoot ) )
61- {
62- Directory . CreateDirectory ( PjskImageRoot ) ;
63- Directory . CreateDirectory ( PjskImageRoot + "Song/" ) ;
64- Directory . CreateDirectory ( PjskImageRoot + "Chart/" ) ;
65- Directory . CreateDirectory ( PjskImageRoot + "EventBg/" ) ;
66- }
67-
6859 if ( ! Directory . Exists ( ArcaeaImageRoot ) )
6960 {
7061 Directory . CreateDirectory ( ArcaeaImageRoot ) ;
@@ -77,8 +68,6 @@ static Path()
7768
7869 private Path ( string rawpath ) { _rawpath = rawpath ; }
7970
80- private FileInfo ? _fileInfo ;
81-
8271 public FileInfo FileInfo => _fileInfo ??= new ( this ) ;
8372
8473 public static Path BotConfig ( uint qqid ) => new ( AndreaConfigRoot + $ "BotInfo/{ qqid } .andreal.konata.botinfo") ;
@@ -96,10 +85,8 @@ public static async Task<Path> ArcaeaSong(ArcaeaChart chart)
9685
9786 if ( pth . FileInfo . Exists )
9887 {
99- if ( pth . FileInfo . Length > 10240 )
100- return pth ;
101- else
102- pth . FileInfo . Delete ( ) ;
88+ if ( pth . FileInfo . Length > 10240 ) return pth ;
89+ pth . FileInfo . Delete ( ) ;
10390 }
10491
10592 await ArcaeaUnlimitedApi . SongAssets ( chart . SongID , chart . RatingClass , pth ) ;
@@ -142,10 +129,8 @@ public static async Task<Path> ArcaeaPartner(int partner, bool awakened)
142129
143130 if ( pth . FileInfo . Exists )
144131 {
145- if ( pth . FileInfo . Length > 10240 )
146- return pth ;
147- else
148- pth . FileInfo . Delete ( ) ;
132+ if ( pth . FileInfo . Length > 10240 ) return pth ;
133+ pth . FileInfo . Delete ( ) ;
149134 }
150135
151136 await ArcaeaUnlimitedApi . CharAssets ( partner , awakened , pth ) ;
@@ -159,10 +144,8 @@ public static async Task<Path> ArcaeaPartnerIcon(int partner, bool awakened)
159144
160145 if ( pth . FileInfo . Exists )
161146 {
162- if ( pth . FileInfo . Length > 10240 )
163- return pth ;
164- else
165- pth . FileInfo . Delete ( ) ;
147+ if ( pth . FileInfo . Length > 10240 ) return pth ;
148+ pth . FileInfo . Delete ( ) ;
166149 }
167150
168151 await ArcaeaUnlimitedApi . IconAssets ( partner , awakened , pth ) ;
@@ -176,10 +159,8 @@ public static async Task<Path> ArcaeaChartPreview(ArcaeaChart chart)
176159
177160 if ( pth . FileInfo . Exists )
178161 {
179- if ( pth . FileInfo . Length > 10240 )
180- return pth ;
181- else
182- pth . FileInfo . Delete ( ) ;
162+ if ( pth . FileInfo . Length > 10240 ) return pth ;
163+ pth . FileInfo . Delete ( ) ;
183164 }
184165
185166 await ArcaeaUnlimitedApi . PreviewAssets ( chart . SongID , chart . RatingClass , pth ) ;
@@ -197,13 +178,6 @@ public static async Task<Path> ArcaeaChartPreview(ArcaeaChart chart)
197178
198179 public static Path RandImageFileName ( ) => new ( TempImageRoot + $ "{ RandStringHelper . GetRandString ( ) } .jpg") ;
199180
200- public static Path PjskSong ( string sid ) => new ( PjskImageRoot + $ "Song/{ sid } .png") ;
201-
202- public static Path PjskChart ( string sid , string dif ) => new ( PjskImageRoot + $ "Chart/{ sid } _{ dif } .png") ;
203-
204- public static Path PjskEvent ( string currentEventAssetbundleName ) =>
205- new ( PjskImageRoot + $ "EventBg/{ currentEventAssetbundleName } .png") ;
206-
207181 public static Path ArcaeaBg4 ( int difficulty , string package )
208182 {
209183 var backgroundImgV4 = difficulty == 3
0 commit comments