Sharing more of trace viewer code.

This commit is contained in:
Ben Vanik
2015-12-13 11:22:47 -08:00
parent 5db84105c4
commit 95b0ecf774
6 changed files with 72 additions and 70 deletions

View File

@@ -50,8 +50,12 @@ Emulator::~Emulator() {
}
// Give the systems time to shutdown before we delete them.
graphics_system_->Shutdown();
audio_system_->Shutdown();
if (graphics_system_) {
graphics_system_->Shutdown();
}
if (audio_system_) {
audio_system_->Shutdown();
}
input_system_.reset();
graphics_system_.reset();