Sound fixed and complete. More OpCodes to implement
This commit is contained in:
@@ -79,6 +79,8 @@ namespace Desktop
|
||||
|
||||
if (_isPaused)
|
||||
{
|
||||
stopwatch.Restart();
|
||||
scanlineCount = 0;
|
||||
Thread.Sleep(10);
|
||||
continue;
|
||||
}
|
||||
@@ -174,6 +176,7 @@ namespace Desktop
|
||||
|
||||
private void loadTAPToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
_isPaused = true;
|
||||
using (OpenFileDialog ofd = new OpenFileDialog())
|
||||
{
|
||||
ofd.Filter = "Spectrum TAP Files|*.tap";
|
||||
@@ -183,9 +186,11 @@ namespace Desktop
|
||||
_cpu._tapManager.LoadTapData(tapBytes);
|
||||
}
|
||||
}
|
||||
_isPaused = false;
|
||||
}
|
||||
private void openSNAToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
_isPaused = true;
|
||||
using (OpenFileDialog ofd = new OpenFileDialog())
|
||||
{
|
||||
ofd.Filter = "Snapshot Files (sna,z80)|*.sna";
|
||||
@@ -195,6 +200,7 @@ namespace Desktop
|
||||
_cpu.LoadSNA(snaBytes);
|
||||
}
|
||||
}
|
||||
_isPaused = false;
|
||||
}
|
||||
|
||||
private void btnRun_Click(object sender, EventArgs e) => _isPaused = false;
|
||||
|
||||
Reference in New Issue
Block a user