From 76f4c32cedb1b084120c43fed9471d2fb17323bf Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Tue, 22 Jun 2021 11:21:27 +0200 Subject: [PATCH] early-access version 1804 --- README.md | 2 +- src/core/core.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 20ff9924f..52cdf357c 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 1803. +This is the source code for early-access 1804. ## Legal Notice diff --git a/src/core/core.cpp b/src/core/core.cpp index c5004b7b4..e6f1aa0e7 100755 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #include +#include #include #include @@ -377,7 +378,7 @@ struct System::Impl { std::unique_ptr device_memory; Core::Memory::Memory memory; CpuManager cpu_manager; - bool is_powered_on = false; + std::atomic_bool is_powered_on{}; bool exit_lock = false; Reporter reporter; @@ -463,7 +464,7 @@ System::ResultStatus System::Load(Frontend::EmuWindow& emu_window, const std::st } bool System::IsPoweredOn() const { - return impl->is_powered_on; + return impl->is_powered_on.load(std::memory_order::relaxed); } void System::PrepareReschedule() {