Exemple #1
0
        public FFXIVMemory(EnmityOverlay overlay, Process process)
        {
            _overlay = overlay;
            _process = process;
            if (process.ProcessName == "ffxiv")
            {
                _mode = FFXIVClientMode.FFXIV_32;
                throw new MemoryScanException(String.Format("DX9 is not supported."));
            }
            else if (process.ProcessName == "ffxiv_dx11")
            {
                _mode = FFXIVClientMode.FFXIV_64;
            }
            else
            {
                _mode = FFXIVClientMode.Unknown;
            }
            overlay.LogDebug("Attatching process: {0} ({1})",
                             process.Id, (_mode == FFXIVClientMode.FFXIV_64 ? "dx11" : "other"));

            this.getPointerAddress();

            Combatants = new List <Combatant>();

            _thread = new Thread(new ThreadStart(doScanCombatants));
            _thread.IsBackground = true;
            _thread.Start();

            overlay.LogInfo("Attatched process successfully, pid: {0} ({1})",
                            process.Id, (_mode == FFXIVClientMode.FFXIV_64 ? "dx11" : "other"));
        }
Exemple #2
0
        public EnmityOverlayConfigPanel(EnmityOverlay overlay)
        {
            InitializeComponent();

            this.overlay = overlay;
            this.config  = overlay.Config;

            SetupControlProperties();
            SetupConfigEventHandlers();
            RefreshProcessList();
            this.comboProcessList.SelectedItem = "Automatic";
        }