// Token: 0x060155AA RID: 87466 RVA: 0x0056AFC0 File Offset: 0x005691C0 private void AddCmd(Type cmdType) { object obj = Activator.CreateInstance(cmdType); IDebugCmd debugCmd = (IDebugCmd)obj; this._cmdMap.Add(debugCmd.GetName().ToLower(), debugCmd); }
// Token: 0x060155AD RID: 87469 RVA: 0x0056B06C File Offset: 0x0056926C public void RunInstruct(string instruct) { string instruct2 = instruct.Trim(); string cmdName = this._GetCommandName(instruct2); string strParams = this._GetCommandParams(instruct2); IDebugCmd debugCmd = this._GetCommand(cmdName); if (debugCmd != null) { debugCmd.Execute(strParams); this._showOldCommandIdx = 0; if (this._oldCommands.Count == 0 || this._oldCommands[this._oldCommands.Count - 1].ToLower() != instruct.ToLower()) { this._oldCommands.Add(instruct); } this.SaveOldCommands(); } else { this._PrintWrongCommandHint(); } }