Exemplo n.º 1
0
        public WabbitemuDebugger()
        {
            var romFile = GetRomFile();

            if (romFile == null || !File.Exists(romFile))
            {
                throw new MissingRomException("Could not load Wabbitemu ROM");
            }

            for (int i = 0; i <= 255; i++)
            {
                _palette[i] = Color.FromArgb(0x9e * (256 - i) / 255, (0xAB * (256 - i)) / 255, (0x88 * (256 - i)) / 255);
            }

            Debug.WriteLine("Creating wabbitemu");
            _debugger = new Wabbitemu();
            Debug.WriteLine("Loading rom file " + romFile);
            _debugger.LoadFile(romFile);
            _debugger.Breakpoint += debugger_Breakpoint;
            _debugger.Close      += debugger_Close;
        }
Exemplo n.º 2
0
 public void LoadFile(string fileName)
 {
     _debugger.LoadFile(fileName);
 }