Advertisement
pozzum

Untitled

Mar 22nd, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.69 KB | None | 0 0
  1. .method assembly hidebysig instance void
  2. SaveObject(object saveData,
  3. string fileName) cil managed
  4. {
  5. // Code size 218 (0xda)
  6. .maxstack 4
  7. .locals init (class [mscorlib]System.IAsyncResult V_0,
  8. class [FNA]Microsoft.Xna.Framework.Storage.StorageContainer V_1,
  9. class [mscorlib]System.IO.Stream V_2,
  10. class [System.Xml]System.Xml.Serialization.XmlSerializer V_3,
  11. class [System.Core]System.Security.Cryptography.AesCryptoServiceProvider V_4,
  12. uint8[] V_5,
  13. uint8[] V_6,
  14. class [mscorlib]System.Security.Cryptography.ICryptoTransform V_7,
  15. class [mscorlib]System.Security.Cryptography.CryptoStream V_8)
  16. IL_0000: ldarg.0
  17. IL_0001: ldfld class [FNA]Microsoft.Xna.Framework.Storage.StorageDevice OuterBeyond.THSaveManager::mStorageDevice
  18. IL_0006: brfalse IL_00d9
  19.  
  20. IL_000b: ldarg.0
  21. IL_000c: ldfld class [FNA]Microsoft.Xna.Framework.Storage.StorageDevice OuterBeyond.THSaveManager::mStorageDevice
  22. IL_0011: callvirt instance bool [FNA]Microsoft.Xna.Framework.Storage.StorageDevice::get_IsConnected()
  23. IL_0016: brfalse IL_00d9
  24.  
  25. IL_001b: ldarg.0
  26. IL_001c: ldfld class [FNA]Microsoft.Xna.Framework.Storage.StorageDevice OuterBeyond.THSaveManager::mStorageDevice
  27. IL_0021: ldsfld string OuterBeyond.THSaveManager::mContainerName
  28. IL_0026: ldnull
  29. IL_0027: ldnull
  30. IL_0028: callvirt instance class [mscorlib]System.IAsyncResult [FNA]Microsoft.Xna.Framework.Storage.StorageDevice::BeginOpenContainer(string,
  31. class [mscorlib]System.AsyncCallback,
  32. object)
  33. IL_002d: stloc.0
  34. IL_002e: ldloc.0
  35. IL_002f: callvirt instance class [mscorlib]System.Threading.WaitHandle [mscorlib]System.IAsyncResult::get_AsyncWaitHandle()
  36. IL_0034: callvirt instance bool [mscorlib]System.Threading.WaitHandle::WaitOne()
  37. IL_0039: pop
  38. IL_003a: ldarg.0
  39. IL_003b: ldfld class [FNA]Microsoft.Xna.Framework.Storage.StorageDevice OuterBeyond.THSaveManager::mStorageDevice
  40. IL_0040: ldloc.0
  41. IL_0041: callvirt instance class [FNA]Microsoft.Xna.Framework.Storage.StorageContainer [FNA]Microsoft.Xna.Framework.Storage.StorageDevice::EndOpenContainer(class [mscorlib]System.IAsyncResult)
  42. IL_0046: stloc.1
  43. IL_0047: ldloc.1
  44. IL_0048: ldarg.2
  45. IL_0049: callvirt instance bool [FNA]Microsoft.Xna.Framework.Storage.StorageContainer::FileExists(string)
  46. IL_004e: brfalse.s IL_0057
  47.  
  48. IL_0050: ldloc.1
  49. IL_0051: ldarg.2
  50. IL_0052: callvirt instance void [FNA]Microsoft.Xna.Framework.Storage.StorageContainer::DeleteFile(string)
  51. IL_0057: ldloc.1
  52. IL_0058: ldarg.2
  53. IL_0059: callvirt instance class [mscorlib]System.IO.Stream [FNA]Microsoft.Xna.Framework.Storage.StorageContainer::CreateFile(string)
  54. IL_005e: stloc.2
  55. IL_005f: ldarg.1
  56. IL_0060: callvirt instance class [mscorlib]System.Type [mscorlib]System.Object::GetType()
  57. IL_0065: newobj instance void [System.Xml]System.Xml.Serialization.XmlSerializer::.ctor(class [mscorlib]System.Type)
  58. IL_006a: stloc.3
  59. IL_006b: newobj instance void [System.Core]System.Security.Cryptography.AesCryptoServiceProvider::.ctor()
  60. IL_0070: stloc.s V_4
  61. IL_0072: ldc.i4.s 16
  62. IL_0074: newarr [mscorlib]System.Byte
  63. IL_0079: dup
  64. IL_007a: ldtoken field valuetype '<PrivateImplementationDetails>'/'__StaticArrayInitTypeSize=16' '<PrivateImplementationDetails>'::CAAE01E8A416B4DFAF8C780EE53AAC4DAA2D8F1D
  65. IL_007f: call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array,
  66. valuetype [mscorlib]System.RuntimeFieldHandle)
  67. IL_0084: stloc.s V_5
  68. IL_0086: ldc.i4.s 16
  69. IL_0088: newarr [mscorlib]System.Byte
  70. IL_008d: dup
  71. IL_008e: ldtoken field valuetype '<PrivateImplementationDetails>'/'__StaticArrayInitTypeSize=16' '<PrivateImplementationDetails>'::'6F07F205FEC0D88C27FBFA7912128E19328C4D79'
  72. IL_0093: call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array,
  73. valuetype [mscorlib]System.RuntimeFieldHandle)
  74. IL_0098: stloc.s V_6
  75. IL_009a: ldloc.s V_4
  76. IL_009c: ldloc.s V_5
  77. IL_009e: ldloc.s V_6
  78. IL_00a0: callvirt instance class [mscorlib]System.Security.Cryptography.ICryptoTransform [mscorlib]System.Security.Cryptography.SymmetricAlgorithm::CreateEncryptor(uint8[],
  79. uint8[])
  80. IL_00a5: stloc.s V_7
  81. IL_00a7: ldloc.2
  82. IL_00a8: ldloc.s V_7
  83. IL_00aa: ldc.i4.1
  84. IL_00ab: newobj instance void [mscorlib]System.Security.Cryptography.CryptoStream::.ctor(class [mscorlib]System.IO.Stream,
  85. class [mscorlib]System.Security.Cryptography.ICryptoTransform,
  86. valuetype [mscorlib]System.Security.Cryptography.CryptoStreamMode)
  87. IL_00b0: stloc.s V_8
  88. IL_00b2: ldloc.3
  89. IL_00b3: ldloc.s V_8
  90. IL_00b5: ldarg.1
  91. IL_00b6: callvirt instance void [System.Xml]System.Xml.Serialization.XmlSerializer::Serialize(class [mscorlib]System.IO.Stream,
  92. object)
  93. IL_00bb: ldloc.s V_8
  94. IL_00bd: callvirt instance void [mscorlib]System.IO.Stream::Close()
  95. IL_00c2: ldloc.2
  96. IL_00c3: callvirt instance void [mscorlib]System.IO.Stream::Close()
  97. IL_00c8: ldloc.1
  98. IL_00c9: callvirt instance void [FNA]Microsoft.Xna.Framework.Storage.StorageContainer::Dispose()
  99. IL_00ce: ldloc.0
  100. IL_00cf: callvirt instance class [mscorlib]System.Threading.WaitHandle [mscorlib]System.IAsyncResult::get_AsyncWaitHandle()
  101. IL_00d4: callvirt instance void [mscorlib]System.Threading.WaitHandle::Close()
  102. IL_00d9: ret
  103. } // end of method THSaveManager::SaveObject
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement