@@ -53,6 +53,7 @@ public string AssetDir
5353 public static List < GenreXml > GenreList { get ; set ; } = [ ] ;
5454 public static List < VersionXml > VersionList { get ; set ; } = [ ] ;
5555 public static Dictionary < int , string > AssetBundleJacketMap { get ; set ; } = new ( ) ;
56+ public static Dictionary < int , string > PseudoAssetBundleJacketMap { get ; set ; } = new ( ) ;
5657 public static Dictionary < string , string > AcbAwb { get ; set ; } = new ( ) ;
5758
5859 public void ScanMusicList ( )
@@ -128,14 +129,18 @@ public void ScanVersionList()
128129 public void ScanAssetBundles ( )
129130 {
130131 AssetBundleJacketMap . Clear ( ) ;
132+ PseudoAssetBundleJacketMap . Clear ( ) ;
131133 foreach ( var a in AssetsDirs )
132134 {
133135 if ( ! Directory . Exists ( Path . Combine ( StreamingAssets , a , @"AssetBundleImages\jacket" ) ) ) continue ;
134- foreach ( var jacketFile in Directory . EnumerateFiles ( Path . Combine ( StreamingAssets , a , @"AssetBundleImages\jacket" ) , "*.ab" ) )
136+ foreach ( var jacketFile in Directory . EnumerateFiles ( Path . Combine ( StreamingAssets , a , @"AssetBundleImages\jacket" ) ) )
135137 {
136138 var idStr = Path . GetFileName ( jacketFile ) . Substring ( "ui_jacket_" . Length , 6 ) ;
137139 if ( ! int . TryParse ( idStr , out var id ) ) continue ;
138- AssetBundleJacketMap [ id ] = jacketFile ;
140+ if ( Path . GetExtension ( jacketFile ) == ".ab" )
141+ AssetBundleJacketMap [ id ] = jacketFile ;
142+ else if ( ( ( string [ ] ) [ ".png" , ".jpg" , ".jpeg" ] ) . Contains ( Path . GetExtension ( jacketFile ) ) )
143+ PseudoAssetBundleJacketMap [ id ] = jacketFile ;
139144 }
140145 }
141146
0 commit comments