Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .method assembly hidebysig instance void
- SaveObject(object saveData,
- string fileName) cil managed
- {
- // Code size 218 (0xda)
- .maxstack 4
- .locals init (class [mscorlib]System.IAsyncResult V_0,
- class [FNA]Microsoft.Xna.Framework.Storage.StorageContainer V_1,
- class [mscorlib]System.IO.Stream V_2,
- class [System.Xml]System.Xml.Serialization.XmlSerializer V_3,
- class [System.Core]System.Security.Cryptography.AesCryptoServiceProvider V_4,
- uint8[] V_5,
- uint8[] V_6,
- class [mscorlib]System.Security.Cryptography.ICryptoTransform V_7,
- class [mscorlib]System.Security.Cryptography.CryptoStream V_8)
- IL_0000: ldarg.0
- IL_0001: ldfld class [FNA]Microsoft.Xna.Framework.Storage.StorageDevice OuterBeyond.THSaveManager::mStorageDevice
- IL_0006: brfalse IL_00d9
- IL_000b: ldarg.0
- IL_000c: ldfld class [FNA]Microsoft.Xna.Framework.Storage.StorageDevice OuterBeyond.THSaveManager::mStorageDevice
- IL_0011: callvirt instance bool [FNA]Microsoft.Xna.Framework.Storage.StorageDevice::get_IsConnected()
- IL_0016: brfalse IL_00d9
- IL_001b: ldarg.0
- IL_001c: ldfld class [FNA]Microsoft.Xna.Framework.Storage.StorageDevice OuterBeyond.THSaveManager::mStorageDevice
- IL_0021: ldsfld string OuterBeyond.THSaveManager::mContainerName
- IL_0026: ldnull
- IL_0027: ldnull
- IL_0028: callvirt instance class [mscorlib]System.IAsyncResult [FNA]Microsoft.Xna.Framework.Storage.StorageDevice::BeginOpenContainer(string,
- class [mscorlib]System.AsyncCallback,
- object)
- IL_002d: stloc.0
- IL_002e: ldloc.0
- IL_002f: callvirt instance class [mscorlib]System.Threading.WaitHandle [mscorlib]System.IAsyncResult::get_AsyncWaitHandle()
- IL_0034: callvirt instance bool [mscorlib]System.Threading.WaitHandle::WaitOne()
- IL_0039: pop
- IL_003a: ldarg.0
- IL_003b: ldfld class [FNA]Microsoft.Xna.Framework.Storage.StorageDevice OuterBeyond.THSaveManager::mStorageDevice
- IL_0040: ldloc.0
- IL_0041: callvirt instance class [FNA]Microsoft.Xna.Framework.Storage.StorageContainer [FNA]Microsoft.Xna.Framework.Storage.StorageDevice::EndOpenContainer(class [mscorlib]System.IAsyncResult)
- IL_0046: stloc.1
- IL_0047: ldloc.1
- IL_0048: ldarg.2
- IL_0049: callvirt instance bool [FNA]Microsoft.Xna.Framework.Storage.StorageContainer::FileExists(string)
- IL_004e: brfalse.s IL_0057
- IL_0050: ldloc.1
- IL_0051: ldarg.2
- IL_0052: callvirt instance void [FNA]Microsoft.Xna.Framework.Storage.StorageContainer::DeleteFile(string)
- IL_0057: ldloc.1
- IL_0058: ldarg.2
- IL_0059: callvirt instance class [mscorlib]System.IO.Stream [FNA]Microsoft.Xna.Framework.Storage.StorageContainer::CreateFile(string)
- IL_005e: stloc.2
- IL_005f: ldarg.1
- IL_0060: callvirt instance class [mscorlib]System.Type [mscorlib]System.Object::GetType()
- IL_0065: newobj instance void [System.Xml]System.Xml.Serialization.XmlSerializer::.ctor(class [mscorlib]System.Type)
- IL_006a: stloc.3
- IL_006b: newobj instance void [System.Core]System.Security.Cryptography.AesCryptoServiceProvider::.ctor()
- IL_0070: stloc.s V_4
- IL_0072: ldc.i4.s 16
- IL_0074: newarr [mscorlib]System.Byte
- IL_0079: dup
- IL_007a: ldtoken field valuetype '<PrivateImplementationDetails>'/'__StaticArrayInitTypeSize=16' '<PrivateImplementationDetails>'::CAAE01E8A416B4DFAF8C780EE53AAC4DAA2D8F1D
- IL_007f: call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array,
- valuetype [mscorlib]System.RuntimeFieldHandle)
- IL_0084: stloc.s V_5
- IL_0086: ldc.i4.s 16
- IL_0088: newarr [mscorlib]System.Byte
- IL_008d: dup
- IL_008e: ldtoken field valuetype '<PrivateImplementationDetails>'/'__StaticArrayInitTypeSize=16' '<PrivateImplementationDetails>'::'6F07F205FEC0D88C27FBFA7912128E19328C4D79'
- IL_0093: call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array,
- valuetype [mscorlib]System.RuntimeFieldHandle)
- IL_0098: stloc.s V_6
- IL_009a: ldloc.s V_4
- IL_009c: ldloc.s V_5
- IL_009e: ldloc.s V_6
- IL_00a0: callvirt instance class [mscorlib]System.Security.Cryptography.ICryptoTransform [mscorlib]System.Security.Cryptography.SymmetricAlgorithm::CreateEncryptor(uint8[],
- uint8[])
- IL_00a5: stloc.s V_7
- IL_00a7: ldloc.2
- IL_00a8: ldloc.s V_7
- IL_00aa: ldc.i4.1
- IL_00ab: newobj instance void [mscorlib]System.Security.Cryptography.CryptoStream::.ctor(class [mscorlib]System.IO.Stream,
- class [mscorlib]System.Security.Cryptography.ICryptoTransform,
- valuetype [mscorlib]System.Security.Cryptography.CryptoStreamMode)
- IL_00b0: stloc.s V_8
- IL_00b2: ldloc.3
- IL_00b3: ldloc.s V_8
- IL_00b5: ldarg.1
- IL_00b6: callvirt instance void [System.Xml]System.Xml.Serialization.XmlSerializer::Serialize(class [mscorlib]System.IO.Stream,
- object)
- IL_00bb: ldloc.s V_8
- IL_00bd: callvirt instance void [mscorlib]System.IO.Stream::Close()
- IL_00c2: ldloc.2
- IL_00c3: callvirt instance void [mscorlib]System.IO.Stream::Close()
- IL_00c8: ldloc.1
- IL_00c9: callvirt instance void [FNA]Microsoft.Xna.Framework.Storage.StorageContainer::Dispose()
- IL_00ce: ldloc.0
- IL_00cf: callvirt instance class [mscorlib]System.Threading.WaitHandle [mscorlib]System.IAsyncResult::get_AsyncWaitHandle()
- IL_00d4: callvirt instance void [mscorlib]System.Threading.WaitHandle::Close()
- IL_00d9: ret
- } // end of method THSaveManager::SaveObject
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement