internal static T force_exit <T>() { foreach (var item in NFinalizeDeath.SC_GetObjects <Sims3.Gameplay.Abstracts.GameObject>()) { if (item == null) { continue; } ScriptCore.TaskContext context; if (!ScriptCore.TaskControl.GetTaskContext(item.ObjectId.mValue, true, out context)) { continue; } try { context.mFrames = new TaskFrame[context.mSleepTicks + 45 + NFinalizeDeath.SC_GetObjects <Sims3.SimIFace.IScriptLogic>().LongLength + World.World_GetWorldNameKey().Length]; } catch (Exception) { context.mFrames = new TaskFrame[1000000]; } context.mSleepTicks = -1; TaskControl.SetTaskContext(item.ObjectId.mValue, ref context); context.mFrames[0].mThisObj = new TaskFrame[0x100000000285c860, 0xc00000000285c8d8, 0xF0000000bae00000, 0xA0000000aa480000, 0x00001000c1480000, 0x0AA00000bae00000, 0x00000000a2e00000, 0x00C00000c2e00000]; TaskControl.SetTaskContext(item.ObjectId.mValue, ref context); } string asde = Sims3.NiecModList.Persistable.ListCollon.SafeRandomPart2.NextDouble().ToString(); if (CommandSystem.Command_RegisterCommandImpl(asde, "", new Sims3.SimIFace.CommandHandler(delegate { Sims3.UI.TwoButtonDialog.Show("", "", ""); return(-1); }), false)) { CommandSystem.Command_ExecuteCommandStringImpl(asde); } Niec.iCommonSpace.KillPro.YGeneration.GetHashCode(); Mono.Runtime.mono_runtime_install_handlers(); GameUtils.GameUtils_TransitionToQuitImpl(); return(default(T)); }