/// <summary> /// Raise when a rom is successfully Loaded /// </summary> public static void OnRomLoaded(IEmulator emu) { Emulator = emu; VideoProvider = emu.AsVideoProviderOrDefault(); RomLoaded?.Invoke(null, EventArgs.Empty); _allJoyPads = new List <Joypad>(RunningSystem.MaxControllers); for (int i = 1; i <= RunningSystem.MaxControllers; i++) { _allJoyPads.Add(new Joypad(RunningSystem, i)); } }
/// <summary> /// Raise when a rom is successfully Loaded /// </summary> public static void OnRomLoaded(IEmulator emu) { Emulator = emu; VideoProvider = emu.AsVideoProviderOrDefault(); RomLoaded?.Invoke(null, EventArgs.Empty); try { _allJoyPads = new List <Joypad>(RunningSystem.MaxControllers); for (var i = 1; i <= RunningSystem.MaxControllers; i++) { _allJoyPads.Add(new Joypad(RunningSystem, i)); } } catch (Exception e) { Console.Error.WriteLine("Apihawk is garbage and may not work this session."); Console.Error.WriteLine(e); } }
public void OnRomLoaded() { RomLoaded?.Invoke(null, EventArgs.Empty); }