void Core_LoadAnimCode() { try { Constructor_PointerBox.Value = CurrentAnim.Address_Constructor; LoopRoutine_PointerBox.Value = CurrentAnim.Address_LoopRoutine; AnimLoading_PointerBox.Value = CurrentAnim.Address_AnimLoading; try { if (Constructor_Label.Checked) { ASM_ListBox.DataSource = CurrentAnim.GetASM_Constructor(); } } catch (Exception ex) { throw new Exception("Could not dissassemble constructor.", ex); } try { if (LoopRoutine_Label.Checked) { ASM_ListBox.DataSource = CurrentAnim.GetASM_LoopRoutine(); } } catch (Exception ex) { throw new Exception("Could not dissassemble loop routine.", ex); } try { if (AnimLoading_Label.Checked) { ASM_ListBox.DataSource = CurrentAnim.GetASM_AnimLoading(); } } catch (Exception ex) { throw new Exception("Could not dissassemble anim loading routine.", ex); } } catch (Exception ex) { Program.ShowError("Could not dissassemble spell anim routines.", ex); ASM_ListBox.DataSource = new string[0]; } try { Anim_CodeBox.Text = string.Join("\r\n", CurrentAnim.GetAnimCode(Commands)); } catch (Exception ex) { Program.ShowError("Could not load anim code.", ex); Anim_CodeBox.Text = ""; } }