VERY experimental Nintendo Switch 2 emulator
C++
cpu_interrupt_handler: Misc style changes
ReinUsesLispad0306e52023
diff --git a/src/core/arm/cpu_interrupt_handler.cpp b/src/core/arm/cpu_interrupt_handler.cppindex 4c717ebe9b..9c88987003 100644--- a/src/core/arm/cpu_interrupt_handler.cpp+++ b/src/core/arm/cpu_interrupt_handler.cpp@@ -7,9 +7,7 @@namespace Core {-CPUInterruptHandler::CPUInterruptHandler() {- interrupt_event = std::make_unique<Common::Event>();-}+CPUInterruptHandler::CPUInterruptHandler() : interrupt_event{std::make_unique<Common::Event>()} {}CPUInterruptHandler::~CPUInterruptHandler() = default;@@ -17,7 +15,7 @@ void CPUInterruptHandler::SetInterrupt(bool is_interrupted_) {if (is_interrupted_) {interrupt_event->Set();}- this->is_interrupted = is_interrupted_;+ is_interrupted = is_interrupted_;}void CPUInterruptHandler::AwaitInterrupt() {diff --git a/src/core/arm/cpu_interrupt_handler.h b/src/core/arm/cpu_interrupt_handler.hindex 61c22fef95..71e582f797 100644--- a/src/core/arm/cpu_interrupt_handler.h+++ b/src/core/arm/cpu_interrupt_handler.h@@ -33,8 +33,8 @@ public:void AwaitInterrupt();private:- std::atomic_bool is_interrupted{false};std::unique_ptr<Common::Event> interrupt_event;+ std::atomic_bool is_interrupted{false};};} // namespace Core