Moving shutdown logic to Emulator.
This commit is contained in:
@@ -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());
|
||||
});
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user