예제 #1
0
        /* * * * * * * * * *
        * Common Methods
        * * * * * * * * * */
        #region Common Methods

        public static Dictionary <string, TrainerPointer> GetEmulatorPointer(this TrainerType trainerType, bool?is64bits = null,
                                                                             PSXEmulator psxEmulator         = PSXEmulator.Null,
                                                                             NESEmulator nesEmulator         = NESEmulator.Null,
                                                                             SNESEmulator snesEmulator       = SNESEmulator.Null,
                                                                             N64Emulator n64Emulator         = N64Emulator.Null,
                                                                             SMSEmulator smsEmulator         = SMSEmulator.Null,
                                                                             GenesisEmulator genesisEmulator = GenesisEmulator.Null) =>
        trainerType switch
        {
예제 #2
0
        public EmulatorHomeViewModel()
        {
            //Setup Paint and Touch Commands for SKView elements
            PaintEmulatorCommand   = new Command <SKPaintSurfaceEventArgs>(PaintEmulator);
            PaintControllerCommand = new Command <SKPaintSurfaceEventArgs>(PaintController);
            PaintConsoleCommand    = new Command <SKPaintSurfaceEventArgs>(PaintConsole);
            TouchConsoleCommand    = new Command <SKTouchEventArgs>(TouchConsole);
            TouchControllerCommand = new Command <SKTouchEventArgs>(TouchController);

            //Setup Renderer
            _resourceReader = new Resources.Reader();
            _renderer       = new SKBitmapRenderer();

            //Setup Emulator
            _emu = new NESEmulator(_resourceReader.GetResource(ResourceRom), GetFrameFromEmulator);

            //Setup Static Generator
            _renderStaticTask = Task.Factory.StartNew(RenderStatic);
        }