@@ -85,14 +85,16 @@ public void RequestCopyTo(RequestCopyToRequest request)
8585 Directory . CreateDirectory ( Path . Combine ( dest , @"AssetBundleImages\jacket" ) ) ;
8686 if ( music . JacketPath is not null )
8787 {
88- FileSystem . CopyFile ( music . JacketPath , Path . Combine ( dest , $@ "AssetBundleImages\jacket\ui_jacket_{ music . NonDxId : 000000} { Path . GetExtension ( music . JacketPath ) } ") , UIOption . OnlyErrorDialogs ) ;
88+ FileSystem . CopyFile ( music . JacketPath , Path . Combine ( dest , $@ "AssetBundleImages\jacket\ui_jacket_{ music . NonDxId : 000000} { Path . GetExtension ( music . JacketPath ) } ") ,
89+ UIOption . OnlyErrorDialogs ) ;
8990 }
9091 else if ( music . AssetBundleJacket is not null )
9192 {
9293 FileSystem . CopyFile ( music . AssetBundleJacket , Path . Combine ( dest , $@ "AssetBundleImages\jacket\{ Path . GetFileName ( music . AssetBundleJacket ) } ") , UIOption . OnlyErrorDialogs ) ;
9394 if ( System . IO . File . Exists ( music . AssetBundleJacket + ".manifest" ) )
9495 {
95- FileSystem . CopyFile ( music . AssetBundleJacket + ".manifest" , Path . Combine ( dest , $@ "AssetBundleImages\jacket\{ Path . GetFileName ( music . AssetBundleJacket ) } .manifest") , UIOption . OnlyErrorDialogs ) ;
96+ FileSystem . CopyFile ( music . AssetBundleJacket + ".manifest" , Path . Combine ( dest , $@ "AssetBundleImages\jacket\{ Path . GetFileName ( music . AssetBundleJacket ) } .manifest") ,
97+ UIOption . OnlyErrorDialogs ) ;
9698 }
9799 }
98100 else if ( music . PseudoAssetBundleJacket is not null )
@@ -228,25 +230,27 @@ public void ModifyId(int id, [FromBody] int newId, string assetDir)
228230 var movieTarget = Path . Combine ( StaticSettings . StreamingAssets , assetDir , "MovieData" , $ "{ newNonDxId : 000000} ") ;
229231 var newMusicDir = Path . Combine ( StaticSettings . StreamingAssets , assetDir , "music" , $ "music{ newNonDxId : 000000} ") ;
230232 DeleteIfExists ( abJacketTarget , abJacketTarget + ".manifest" , acbawbTarget + ".acb" , acbawbTarget + ".awb" , movieTarget + ".dat" , movieTarget + ".mp4" , newMusicDir ) ;
233+ var abiDir = Path . Combine ( StaticSettings . GamePath , "StreamingAssets" , assetDir , @"AssetBundleImages\jacket" ) ;
234+ Directory . CreateDirectory ( abiDir ) ;
231235
232236 // jacket
233237 if ( music . JacketPath is not null )
234238 {
235- var localJacketTarget = Path . Combine ( StaticSettings . ImageAssetsDir , $ "{ newNonDxId : 000000} { Path . GetExtension ( music . JacketPath ) } ") ;
239+ var localJacketTarget = Path . Combine ( abiDir , $ "ui_jacket_ { newNonDxId : 000000} { Path . GetExtension ( music . JacketPath ) } ") ;
236240 DeleteIfExists ( localJacketTarget ) ;
237241 logger . LogInformation ( "Move jacket: {music.JacketPath} -> {localJacketTarget}" , music . JacketPath , localJacketTarget ) ;
238242 FileSystem . MoveFile ( music . JacketPath , localJacketTarget , UIOption . OnlyErrorDialogs ) ;
239243 }
240244 else if ( music . PseudoAssetBundleJacket is not null )
241245 {
242- var localJacketTarget = Path . Combine ( StaticSettings . ImageAssetsDir , $ "{ newNonDxId : 000000} { Path . GetExtension ( music . PseudoAssetBundleJacket ) } ") ;
246+ var localJacketTarget = Path . Combine ( abiDir , $ "ui_jacket_ { newNonDxId : 000000} { Path . GetExtension ( music . PseudoAssetBundleJacket ) } ") ;
243247 DeleteIfExists ( localJacketTarget ) ;
244248 logger . LogInformation ( "Move jacket: {music.PseudoAssetBundleJacket} -> {localJacketTarget}" , music . PseudoAssetBundleJacket , localJacketTarget ) ;
245249 FileSystem . MoveFile ( music . PseudoAssetBundleJacket , localJacketTarget , UIOption . OnlyErrorDialogs ) ;
246250 }
247251 else if ( music . AssetBundleJacket is not null )
248252 {
249- var localJacketTarget = Path . Combine ( StaticSettings . ImageAssetsDir , $ "{ newNonDxId : 000000} .png") ;
253+ var localJacketTarget = Path . Combine ( abiDir , $ "ui_jacket_ { newNonDxId : 000000} .png") ;
250254 logger . LogInformation ( "Convert jacket: {music.AssetBundleJacket} -> {abJacketTarget}" , music . AssetBundleJacket , abJacketTarget ) ;
251255 System . IO . File . WriteAllBytes ( localJacketTarget , music . GetMusicJacketPngData ( ) ! ) ;
252256 FileSystem . DeleteFile ( music . AssetBundleJacket , UIOption . OnlyErrorDialogs , RecycleOption . SendToRecycleBin ) ;
0 commit comments