public void saveResult(String _description, librpc.MemorySection _memorySection, UInt32 sectionOffset, Type _valueType, dynamic _value, UInt64 _address = 0) { listViewSavedResults.AddObject(new CheatInformation() { address = _address, description = _description, memorySection = _memorySection, sectionOffset = sectionOffset, valueType = _valueType, value = _value }); }
public static String getVersionStr() { librpc.ProcessInfo processInfo = Memory.getProcessInfoFromName("SceCdlgApp"); if (processInfo == null) { return(String.Empty); } librpc.MemorySection memorySection = Sections.findMemorySectionByName(processInfo, "libSceCdlgUtilServer.sprx", librpc.VM_PROT.RW); if (memorySection == null) { return(String.Empty); } return(Memory.readString(processInfo.id, memorySection.start + 0xC8)); }
public static librpc.MemorySection findMemorySectionByName(librpc.ProcessInfo processInfo, String sectionName, librpc.VM_PROT protection = librpc.VM_PROT.RO) { librpc.MemorySection result = null; foreach (var memorySection in processInfo.listProcessMemorySections) { if (memorySection.name == sectionName && (memorySection.protection & protection) == protection) { result = memorySection; break; } } return(result); }
public void saveResult(String description, String strRuntimeAddress, librpc.MemorySection section, UInt32 sectionAddressOffset) { UInt64 runtimeAddress = Convert.ToUInt64(strRuntimeAddress, 16); var runtimeValue = Memory.read(processInfo.pid, runtimeAddress, scanValueType); DataGridViewRow row = dataGridSavedResults.Rows[dataGridSavedResults.Rows.Add()]; row.Cells[SavedResultsColumnIndex.iDescription].Value = description; row.Cells[SavedResultsColumnIndex.iAddress].Value = runtimeAddress; row.Cells[SavedResultsColumnIndex.iSection].Value = section; row.Cells[SavedResultsColumnIndex.iValueType].Value = (String)cmbBoxValueType.SelectedItem; row.Cells[SavedResultsColumnIndex.iValue].Value = runtimeValue; CheatInformation cheatInformation = new CheatInformation(); cheatInformation.sectionAddressOffset = sectionAddressOffset; row.Tag = cheatInformation; }
public childFrmEditCheat(List <librpc.MemorySection> listMemorySections, String description, librpc.MemorySection section, UInt32 sectionAddressOffset, String strValueType, Object value) { InitializeComponent(); foreach (var memSection in listMemorySections) { cmbBoxSection.Items.Add(memSection); } cmbBoxSection.SelectedItem = section; cmbBoxValueType.SelectedItem = strValueType; txtBoxDescription.Text = description; txtBoxSectionAddressOffset.Text = sectionAddressOffset.ToString("X"); txtBoxValue.Text = value.ToString(); }