Enably NES Music Ripper only with NESHawk, also throw out vestigial method in HotkeyConfig.
This commit is contained in:
parent
3c3cdc4590
commit
9b6ff71cac
|
@ -1206,6 +1206,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
&& !Global.MovieSession.Movie.IsActive;
|
||||
|
||||
barcodeReaderToolStripMenuItem.Enabled = ServiceInjector.IsAvailable(Global.Emulator.ServiceProvider, typeof(BarcodeEntry));
|
||||
|
||||
musicRipperToolStripMenuItem.Enabled = GlobalWin.Tools.IsAvailable<NESMusicRipper>();
|
||||
}
|
||||
|
||||
private void FdsControlsMenuItem_DropDownOpened(object sender, EventArgs e)
|
||||
|
|
|
@ -61,11 +61,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
Close();
|
||||
}
|
||||
|
||||
private void RestoreDefaults_Click(object sender, EventArgs e)
|
||||
{
|
||||
Defaults();
|
||||
}
|
||||
|
||||
private void AutoTabCheckBox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
SetAutoTab();
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
public partial class NESMusicRipper : Form, IToolFormAutoConfig
|
||||
{
|
||||
[RequiredService]
|
||||
private IEmulator _emu { get; set; }
|
||||
private NES nes { get; set; }
|
||||
|
||||
public NESMusicRipper()
|
||||
{
|
||||
|
@ -436,7 +436,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
//fpulse = fCPU/(16*(t+1)) (where fCPU is 1.789773 MHz for NTSC, 1.662607 MHz for PAL, and 1.773448 MHz for Dendy)
|
||||
//ftriangle = fCPU/(32*(tval + 1))
|
||||
|
||||
var nes = _emu as NES;
|
||||
var apu = nes.apu;
|
||||
|
||||
//evaluate the pitches
|
||||
|
@ -485,8 +484,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void btnControl_Click(object sender, EventArgs e)
|
||||
{
|
||||
var nes = _emu as NES;
|
||||
|
||||
if(IsRunning)
|
||||
{
|
||||
SyncContents();
|
||||
|
@ -512,7 +509,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void NESMusicRipper_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
var nes = _emu as NES;
|
||||
var apu = nes.apu;
|
||||
apu.DebugCallbackDivider = 0;
|
||||
apu.DebugCallbackTimer = 0;
|
||||
|
|
Loading…
Reference in New Issue