remove GlobalWin usage in RecordMovie.cs
This commit is contained in:
parent
13b6b09771
commit
066e282b39
|
@ -496,7 +496,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
// Inaccurate core but allow the user to continue anyway
|
// Inaccurate core but allow the user to continue anyway
|
||||||
}
|
}
|
||||||
|
|
||||||
using var form = new RecordMovie(this, Config, Game, Emulator, MovieSession);
|
using var form = new RecordMovie(this, Config, Game, Emulator, MovieSession, FirmwareManager);
|
||||||
form.ShowDialog();
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,19 +16,22 @@ namespace BizHawk.Client.EmuHawk
|
||||||
private readonly GameInfo _game;
|
private readonly GameInfo _game;
|
||||||
private readonly IEmulator _emulator;
|
private readonly IEmulator _emulator;
|
||||||
private readonly IMovieSession _movieSession;
|
private readonly IMovieSession _movieSession;
|
||||||
|
private readonly FirmwareManager _firmwareManager;
|
||||||
|
|
||||||
public RecordMovie(
|
public RecordMovie(
|
||||||
MainForm mainForm,
|
MainForm mainForm,
|
||||||
Config config,
|
Config config,
|
||||||
GameInfo game,
|
GameInfo game,
|
||||||
IEmulator core,
|
IEmulator core,
|
||||||
IMovieSession movieSession)
|
IMovieSession movieSession,
|
||||||
|
FirmwareManager firmwareManager)
|
||||||
{
|
{
|
||||||
_mainForm = mainForm;
|
_mainForm = mainForm;
|
||||||
_config = config;
|
_config = config;
|
||||||
_game = game;
|
_game = game;
|
||||||
_emulator = core;
|
_emulator = core;
|
||||||
_movieSession = movieSession;
|
_movieSession = movieSession;
|
||||||
|
_firmwareManager = firmwareManager;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
if (!_emulator.HasSavestates())
|
if (!_emulator.HasSavestates())
|
||||||
|
@ -132,8 +135,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
movieToRecord.PopulateWithDefaultHeaderValues(
|
movieToRecord.PopulateWithDefaultHeaderValues(
|
||||||
_emulator,
|
_emulator,
|
||||||
GlobalWin.Game,
|
_game,
|
||||||
GlobalWin.FirmwareManager,
|
_firmwareManager,
|
||||||
AuthorBox.Text ?? _config.DefaultAuthor);
|
AuthorBox.Text ?? _config.DefaultAuthor);
|
||||||
movieToRecord.Save();
|
movieToRecord.Save();
|
||||||
_mainForm.StartNewMovie(movieToRecord, true);
|
_mainForm.StartNewMovie(movieToRecord, true);
|
||||||
|
|
Loading…
Reference in New Issue