예제 #1
0
파일: Form1.cs 프로젝트: yongyi781/CCTools
        private void Read()
        {
            var success = ProcessMemory.ReadChipsState(process, chipsStateAddress, chipsState);

            if (!success)
            {
                Log("Error encountered when reading");
            }
        }
예제 #2
0
파일: Form1.cs 프로젝트: yongyi781/CCTools
 private void ReadMonsters()
 {
     if (monsterListAddress != NotFound)
     {
         var success = ProcessMemory.ReadMonsterList(process, monsterListAddress, monsterList, chipsState.MonsterList.Cap);
         if (!success)
         {
             monsterListAddress = NotFound;
             Log("Could not read monster list");
         }
     }
 }
예제 #3
0
파일: Form1.cs 프로젝트: yongyi781/CCTools
        private void MonstersPropertyGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
        {
            if (!IsHooked())
            {
                return;
            }

            var success = ProcessMemory.WriteMonsterList(process, monsterListAddress, monsterList, chipsState.MonsterList.Length);

            if (!success)
            {
                Log($"Error encountered when writing");
            }
        }
예제 #4
0
파일: Form1.cs 프로젝트: yongyi781/CCTools
        private void PropertyGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
        {
            if (!IsHooked())
            {
                return;
            }

            var success = ProcessMemory.WriteChipsState(process, chipsStateAddress, chipsState);

            if (!success)
            {
                Log($"Error encountered when writing");
            }
        }
예제 #5
0
파일: Form1.cs 프로젝트: yongyi781/CCTools
        private void FindBlip2Marker()
        {
            var address = ProcessMemory.Find(process, Marker);

            if (address != NotFound)
            {
                chipsStateAddress = address + BlipWavToStateOffset;
                Log($"Success! Game state address = {chipsStateAddress.ToInt32():X}\r\n" +
                    $"Data address = {(chipsStateAddress + DataOffset).ToInt32():X}\r\n" +
                    $"Game state - 0xF160 = {(chipsStateAddress + MonsterListOffset).ToInt32():X}");
                return;
            }
            else
            {
                chipsStateAddress = NotFound;
            }
        }