Moving shutdown logic to Emulator.

This commit is contained in:
Ben Vanik
2014-01-15 07:31:21 -08:00
parent 991e7d8ad3
commit 2a7f3de1c3
4 changed files with 11 additions and 5 deletions

View File

@@ -30,7 +30,6 @@ D3D11Window::D3D11Window(
swap_chain_ = 0;
render_target_view_ = 0;
// TODO(benvanik): move to emulator main window setter.
closing.AddListener([](UIEvent& e) {
xe_run_loop_quit(e.window()->run_loop());
});

View File

@@ -92,9 +92,6 @@ void GraphicsSystem::ThreadStart() {
running_ = false;
xe_run_loop_release(run_loop);
// TODO(benvanik): call module API to kill? this is a bad shutdown.
exit(1);
}
void GraphicsSystem::Initialize() {