Ejemplo n.º 1
0
        public void addResult(String description, String sectionName, UInt32 sectionAddressOffset)
        {
            UInt64 runtimeAddress = 0;

            for (int i = 0; i < ProcessManager.mInstance.MappedSectionList.Count; i++)
            {
                if (ProcessManager.mInstance.MappedSectionList.GetSectionName(i).Contains(sectionName, StringComparison.OrdinalIgnoreCase))
                {
                    runtimeAddress = ProcessManager.mInstance.MappedSectionList[i].Start + sectionAddressOffset;
                    break;
                }
            }
            var runtimeValue = Memory.read(processInfo.pid, runtimeAddress, scanValueType);

            DataGridViewRow row = dataGridSavedResults.Rows[dataGridSavedResults.Rows.Add()];

            row.Cells[SavedResultsColumnIndex.iDescription].Value = "No description";
            row.Cells[SavedResultsColumnIndex.iAddress].Value     = runtimeAddress;
            row.Cells[SavedResultsColumnIndex.iSection].Value     = sectionName;
            row.Cells[SavedResultsColumnIndex.iType].Value        = (String)cmbBoxValueType.SelectedItem;
            row.Cells[SavedResultsColumnIndex.iValue].Value       = runtimeValue;

            CheatInformation cheatInformation = new CheatInformation();

            cheatInformation.sectionAddressOffset = sectionAddressOffset;
            row.Tag = cheatInformation;
        }
Ejemplo n.º 2
0
        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;
        }