@@ -225,7 +225,7 @@ private void ParseVersionList(string fileUri, byte[] bytes, string errorMessage)
225225 if ( listVersion == 0 )
226226 {
227227 byte [ ] encryptBytes = binaryReader . ReadBytes ( 4 ) ;
228- m_ResourceManager . m_ApplicableGameVersion = Utility . Converter . GetStringFromBytes ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( binaryReader . ReadByte ( ) ) , encryptBytes ) ) ;
228+ m_ResourceManager . m_ApplicableGameVersion = Utility . Converter . GetString ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( binaryReader . ReadByte ( ) ) , encryptBytes ) ) ;
229229 m_ResourceManager . m_InternalResourceVersion = binaryReader . ReadInt32 ( ) ;
230230
231231 int resourceCount = binaryReader . ReadInt32 ( ) ;
@@ -235,13 +235,13 @@ private void ParseVersionList(string fileUri, byte[] bytes, string errorMessage)
235235 Dictionary < string , string [ ] > dependencyAssetNamesCollection = new Dictionary < string , string [ ] > ( ) ;
236236 for ( int i = 0 ; i < resourceCount ; i ++ )
237237 {
238- names [ i ] = Utility . Converter . GetStringFromBytes ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( binaryReader . ReadByte ( ) ) , encryptBytes ) ) ;
238+ names [ i ] = Utility . Converter . GetString ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( binaryReader . ReadByte ( ) ) , encryptBytes ) ) ;
239239
240240 variants [ i ] = null ;
241241 byte variantLength = binaryReader . ReadByte ( ) ;
242242 if ( variantLength > 0 )
243243 {
244- variants [ i ] = Utility . Converter . GetStringFromBytes ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( variantLength ) , encryptBytes ) ) ;
244+ variants [ i ] = Utility . Converter . GetString ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( variantLength ) , encryptBytes ) ) ;
245245 }
246246
247247 LoadType loadType = ( LoadType ) binaryReader . ReadByte ( ) ;
@@ -254,13 +254,13 @@ private void ParseVersionList(string fileUri, byte[] bytes, string errorMessage)
254254 string [ ] assetNames = new string [ assetNamesCount ] ;
255255 for ( int j = 0 ; j < assetNamesCount ; j ++ )
256256 {
257- assetNames [ j ] = Utility . Converter . GetStringFromBytes ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( binaryReader . ReadByte ( ) ) , Utility . Converter . GetBytesFromInt ( hashCode ) ) ) ;
257+ assetNames [ j ] = Utility . Converter . GetString ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( binaryReader . ReadByte ( ) ) , Utility . Converter . GetBytes ( hashCode ) ) ) ;
258258
259259 int dependencyAssetNamesCount = binaryReader . ReadInt32 ( ) ;
260260 string [ ] dependencyAssetNames = new string [ dependencyAssetNamesCount ] ;
261261 for ( int k = 0 ; k < dependencyAssetNamesCount ; k ++ )
262262 {
263- dependencyAssetNames [ k ] = Utility . Converter . GetStringFromBytes ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( binaryReader . ReadByte ( ) ) , Utility . Converter . GetBytesFromInt ( hashCode ) ) ) ;
263+ dependencyAssetNames [ k ] = Utility . Converter . GetString ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( binaryReader . ReadByte ( ) ) , Utility . Converter . GetBytes ( hashCode ) ) ) ;
264264 }
265265
266266 if ( variants [ i ] == null || variants [ i ] == m_CurrentVariant )
@@ -288,7 +288,7 @@ private void ParseVersionList(string fileUri, byte[] bytes, string errorMessage)
288288 int resourceGroupCount = binaryReader . ReadInt32 ( ) ;
289289 for ( int i = 0 ; i < resourceGroupCount ; i ++ )
290290 {
291- string groupName = Utility . Converter . GetStringFromBytes ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( binaryReader . ReadByte ( ) ) , encryptBytes ) ) ;
291+ string groupName = Utility . Converter . GetString ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( binaryReader . ReadByte ( ) ) , encryptBytes ) ) ;
292292 ResourceGroup resourceGroup = m_ResourceManager . GetResourceGroup ( groupName ) ;
293293 int groupResourceCount = binaryReader . ReadInt32 ( ) ;
294294 for ( int j = 0 ; j < groupResourceCount ; j ++ )
@@ -373,13 +373,13 @@ private void ParseReadOnlyList(string fileUri, byte[] bytes, string errorMessage
373373 int resourceCount = binaryReader . ReadInt32 ( ) ;
374374 for ( int i = 0 ; i < resourceCount ; i ++ )
375375 {
376- string name = Utility . Converter . GetStringFromBytes ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( binaryReader . ReadByte ( ) ) , encryptBytes ) ) ;
376+ string name = Utility . Converter . GetString ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( binaryReader . ReadByte ( ) ) , encryptBytes ) ) ;
377377
378378 string variant = null ;
379379 byte variantLength = binaryReader . ReadByte ( ) ;
380380 if ( variantLength > 0 )
381381 {
382- variant = Utility . Converter . GetStringFromBytes ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( variantLength ) , encryptBytes ) ) ;
382+ variant = Utility . Converter . GetString ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( variantLength ) , encryptBytes ) ) ;
383383 }
384384
385385 LoadType loadType = ( LoadType ) binaryReader . ReadByte ( ) ;
@@ -459,13 +459,13 @@ private void ParseReadWriteList(string fileUri, byte[] bytes, string errorMessag
459459 int resourceCount = binaryReader . ReadInt32 ( ) ;
460460 for ( int i = 0 ; i < resourceCount ; i ++ )
461461 {
462- string name = Utility . Converter . GetStringFromBytes ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( binaryReader . ReadByte ( ) ) , encryptBytes ) ) ;
462+ string name = Utility . Converter . GetString ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( binaryReader . ReadByte ( ) ) , encryptBytes ) ) ;
463463
464464 string variant = null ;
465465 byte variantLength = binaryReader . ReadByte ( ) ;
466466 if ( variantLength > 0 )
467467 {
468- variant = Utility . Converter . GetStringFromBytes ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( variantLength ) , encryptBytes ) ) ;
468+ variant = Utility . Converter . GetString ( Utility . Encryption . GetXorBytes ( binaryReader . ReadBytes ( variantLength ) , encryptBytes ) ) ;
469469 }
470470
471471 LoadType loadType = ( LoadType ) binaryReader . ReadByte ( ) ;
0 commit comments