Skip to content

Commit

Permalink
SDL: Fix crash when changing debug settings while running
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Jul 13, 2020
1 parent 6ed6746 commit 48be73b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.8)
project(duckstation C CXX)

message(INFO "CMake Version: ${CMAKE_VERSION}")
message("CMake Version: ${CMAKE_VERSION}")

# Pull in modules.
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules/")
Expand Down
2 changes: 1 addition & 1 deletion src/duckstation-sdl/sdl_host_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ void SDLHostInterface::DrawDebugMenu()
debug_settings_copy.show_spu_state = debug_settings.show_spu_state;
debug_settings_copy.show_timers_state = debug_settings.show_timers_state;
debug_settings_copy.show_mdec_state = debug_settings.show_mdec_state;
SaveAndUpdateSettings();
RunLater([this]() { SaveAndUpdateSettings(); });
}
}

Expand Down

0 comments on commit 48be73b

Please sign in to comment.