Ejemplo n.º 1
0
        public void StartEmulator(IRenderer Renderer)
        {
            System.Action OnRenderFrame = () => {
                this.framesRendered++;
            };
            System.Action OnPresent = () => {
            };

            this.arm7         = new Arm7Processor(this.memory);
            this.videoManager = new VideoManager(this.memory, Renderer, OnRenderFrame, OnPresent);
            this.soundManager = new SoundManager(this.memory, 44100);


            this.iterations = 0;
            this.ResetTimeSecs();

            vramCycles = 0;
            inHblank   = false;
        }
Ejemplo n.º 2
0
        public GbaManager(CoreComm comm)
        {
            _corecomm = comm;

            this.memory              = new Memory();
            this.arm7                = new Arm7Processor(this.memory);
            this.videoManager        = new VideoManager(this);
            this.videoManager.Memory = this.memory;
            this.soundManager        = new SoundManager(this.memory, 44100);

            this.framesRendered = 0;
            Renderer renderer = new Renderer();

            renderer.Initialize(null);
            VideoManager.Renderer = renderer;

            videoManager.Presenter = delegate(uint[] data)
            {
                Buffer.BlockCopy(data, 0, this.vbuf, 0, 240 * 160 * 4);
            };
        }
Ejemplo n.º 3
0
		public GbaManager(CoreComm comm)
		{
			_corecomm = comm;

			this.memory = new Memory();
			this.arm7 = new Arm7Processor(this.memory);
			this.videoManager = new VideoManager(this);
			this.videoManager.Memory = this.memory;
			this.soundManager = new SoundManager(this.memory, 44100);
		
			this.framesRendered = 0;
			Renderer renderer = new Renderer();
			renderer.Initialize(null);
			VideoManager.Renderer = renderer;

			videoManager.Presenter = delegate(uint[] data)
			{
				Buffer.BlockCopy(data, 0, this.vbuf, 0, 240 * 160 * 4);
			};
		}