mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-22 12:33:29 +00:00
Ensures safe shutdown.
This commit is contained in:
parent
81969bbea9
commit
715a1b9cd6
@ -52,7 +52,7 @@ class ConcreteMachine:
|
||||
public:
|
||||
ConcreteMachine(const Analyser::Static::AppleIIgs::Target &target, const ROMMachine::ROMFetcher &rom_fetcher) :
|
||||
m65816_(*this),
|
||||
iwm_(CLOCK_RATE),
|
||||
iwm_(CLOCK_RATE / 2),
|
||||
drives_{
|
||||
{CLOCK_RATE / 2, true},
|
||||
{CLOCK_RATE / 2, true}
|
||||
@ -122,6 +122,10 @@ class ConcreteMachine:
|
||||
insert_media(target.media);
|
||||
}
|
||||
|
||||
~ConcreteMachine() {
|
||||
audio_queue_.flush();
|
||||
}
|
||||
|
||||
void run_for(const Cycles cycles) override {
|
||||
m65816_.run_for(cycles);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user