From 1ddeef71c69832841c9ae089b1e0c1e847927bc3 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sat, 3 Apr 2021 18:11:04 +0300 Subject: [PATCH] Fix some typos --- rpcs3/main.cpp | 6 +++--- rpcs3/rpcs3qt/debugger_frame.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rpcs3/main.cpp b/rpcs3/main.cpp index 0b20374820..a8811ce3ec 100644 --- a/rpcs3/main.cpp +++ b/rpcs3/main.cpp @@ -183,9 +183,9 @@ LOG_CHANNEL(q_debug, "QDEBUG"); std::abort(); } -struct fatal_errors_listener final : logs::listener +struct fatal_error_listener final : logs::listener { - ~fatal_errors_listener() override = default; + ~fatal_error_listener() override = default; void log(u64 /*stamp*/, const logs::message& msg, const std::string& prefix, const std::string& text) override { @@ -451,7 +451,7 @@ int main(int argc, char** argv) log_file = logs::make_file_listener(fs::get_cache_dir() + "RPCS3.log", stats.avail_free / 4); } - static std::unique_ptr log_pauser = std::make_unique(); + static std::unique_ptr log_pauser = std::make_unique(); logs::listener::add(log_pauser.get()); { diff --git a/rpcs3/rpcs3qt/debugger_frame.cpp b/rpcs3/rpcs3qt/debugger_frame.cpp index a52853044e..b3aa8ccd64 100644 --- a/rpcs3/rpcs3qt/debugger_frame.cpp +++ b/rpcs3/rpcs3qt/debugger_frame.cpp @@ -255,10 +255,10 @@ void debugger_frame::open_breakpoints_settings() QCheckBox* check_box = new QCheckBox(tr("Pause All Threads On Hit"), dlg); check_box->setCheckable(true); - check_box->setChecked(g_debugger_pause_all_threads_on_bp ? Qt::Checked : Qt::Unchecked); + check_box->setChecked(g_debugger_pause_all_threads_on_bp.load()); check_box->setToolTip(tr("When set: a breakpoint hit will pause the emulation instead of the current thread." "\nApplies on all breakpoints in all threads regardless if set before or after changing this setting.")); - + connect(check_box, &QCheckBox::clicked, dlg, [](bool checked) { g_debugger_pause_all_threads_on_bp = checked; }); QPushButton* button_ok = new QPushButton(tr("OK"), dlg);