Пример #1
0
 private void DumpWRAMFile(object sender, EventArgs e)
 {
     if (SessionData.IsAutoTracking)
     {
         VBAController.MemDump();
     }
 }
Пример #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            SessionData.Memory = new MemoryTools();
            SessionData.Memory.OnMemoryChanged += OnMemoryChanged;
            SessionData.Memory.CheckForNewDump();

            SessionData.Bot = new PokemonRedBot();
            SessionData.Bot.InitTrackers();

            m_TalkTrackerA = SessionData.Memory.GetTracker(MemoryAddresses.TalkingA);
            m_TalkTrackerB = SessionData.Memory.GetTracker(MemoryAddresses.TalkingB);

            m_MapIDTracker = SessionData.Memory.GetTracker(MemoryAddresses.CurrentMapID);

            m_SpriteData = new BindingList <SpriteSetData>();
            for (int i = 0; i < 16; i++)
            {
                m_SpriteData.Add(new SpriteSetData(i));
            }
            list_Sprites.DataSource = m_SpriteData;

            StartWRAMListener();
            VBAController.BringToFront();
        }