/// <summary> /// The poke. /// </summary> public void Poke() { uint Address = (uint)(this.offsetInMap + map.SelectedMeta.magic); switch (ValueType) { case IFPIO.ObjectEnum.Short: { RTH_Imports.Poke(Address, (uint)Convert.ToInt16(this.Value), 16); break; } case IFPIO.ObjectEnum.Int: { RTH_Imports.Poke(Address, (uint)Convert.ToInt32(this.Value), 32); break; } case IFPIO.ObjectEnum.UShort: { RTH_Imports.Poke(Address, Convert.ToUInt16(this.Value), 16); break; } case IFPIO.ObjectEnum.UInt: { RTH_Imports.Poke(Address, Convert.ToUInt32(this.Value), 32); break; } case IFPIO.ObjectEnum.Float: { uint val = Convert.ToUInt32(Convert.ToSingle(this.Value)); RTH_Imports.Poke(Address, val, 32); break; } case IFPIO.ObjectEnum.Unknown: { RTH_Imports.Poke(Address, RTH_Imports.ConvertFloat(Convert.ToSingle(this.Value)), 32); break; } case IFPIO.ObjectEnum.Byte: { RTH_Imports.Poke(Address, Convert.ToByte(this.Value), 8); break; } } }
/// <summary> /// The poke. /// </summary> public void Poke() { if (this.isNulledOutReflexive) { return; } string tempstring1 = this.comboBox1.Text; if (tempstring1.Contains(" Is Invalid. On Line ") || tempstring1.Contains("Something is wrong with this ") || tempstring1.Contains(" : Value is Too Small To Be An Index") || tempstring1.Contains(" : Value is Too Large To Be The Indexer")) { return; } if (tempstring1 == "nulled") { this.Value = -1; } if (tempstring1.Contains(" : ")) { int counter; for (counter = 0; counter < tempstring1.Length; counter++) { if (tempstring1[counter] == ' ') { break; } } this.Value = Convert.ToInt32(tempstring1.Substring(0, counter)); } uint Address = (uint)(this.offsetInMap + map.SelectedMeta.magic); switch (ValueType) { case IFPIO.ObjectEnum.Short: { RTH_Imports.Poke(Address, (uint)Convert.ToInt16(this.Value), 16); break; } case IFPIO.ObjectEnum.Int: { RTH_Imports.Poke(Address, (uint)Convert.ToInt32(this.Value), 32); break; } case IFPIO.ObjectEnum.UShort: { RTH_Imports.Poke(Address, Convert.ToUInt16(this.Value), 16); break; } case IFPIO.ObjectEnum.UInt: { RTH_Imports.Poke(Address, Convert.ToUInt32(this.Value), 32); break; } case IFPIO.ObjectEnum.Float: { RTH_Imports.Poke(Address, RTH_Imports.ConvertFloat(Convert.ToSingle(this.Value)), 32); break; } case IFPIO.ObjectEnum.Unknown: { RTH_Imports.Poke(Address, RTH_Imports.ConvertFloat(Convert.ToSingle(this.Value)), 32); break; } case IFPIO.ObjectEnum.Byte: { RTH_Imports.Poke(Address, Convert.ToByte(this.Value), 8); break; } } }