early-access version 1804

This commit is contained in:
pineappleEA 2021-06-22 11:21:27 +02:00
parent 060c371a8b
commit 76f4c32ced
2 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,7 @@
yuzu emulator early access yuzu emulator early access
============= =============
This is the source code for early-access 1803. This is the source code for early-access 1804.
## Legal Notice ## Legal Notice

View file

@ -3,6 +3,7 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <array> #include <array>
#include <atomic>
#include <memory> #include <memory>
#include <utility> #include <utility>
@ -377,7 +378,7 @@ struct System::Impl {
std::unique_ptr<Core::DeviceMemory> device_memory; std::unique_ptr<Core::DeviceMemory> device_memory;
Core::Memory::Memory memory; Core::Memory::Memory memory;
CpuManager cpu_manager; CpuManager cpu_manager;
bool is_powered_on = false; std::atomic_bool is_powered_on{};
bool exit_lock = false; bool exit_lock = false;
Reporter reporter; Reporter reporter;
@ -463,7 +464,7 @@ System::ResultStatus System::Load(Frontend::EmuWindow& emu_window, const std::st
} }
bool System::IsPoweredOn() const { bool System::IsPoweredOn() const {
return impl->is_powered_on; return impl->is_powered_on.load(std::memory_order::relaxed);
} }
void System::PrepareReschedule() { void System::PrepareReschedule() {