mirror of
https://github.com/PabloMK7/citra.git
synced 2025-11-03 07:08:48 +00:00
Serialize ArchiveManager and other code review actions
This commit is contained in:
parent
04aa351c40
commit
6760ea18b6
43 changed files with 102 additions and 67 deletions
|
|
@ -4,6 +4,9 @@
|
|||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <boost/serialization/array.hpp>
|
||||
#include <boost/serialization/shared_ptr.hpp>
|
||||
#include <boost/serialization/unique_ptr.hpp>
|
||||
#include "common/archives.h"
|
||||
#include "common/logging/log.h"
|
||||
#include "core/3ds.h"
|
||||
|
|
@ -208,7 +211,7 @@ void Module::UpdateAccelerometerCallback(u64 userdata, s64 cycles_late) {
|
|||
|
||||
Common::Vec3<float> accel;
|
||||
if (!motion_device) {
|
||||
is_device_reload_pending.exchange(true);
|
||||
is_device_reload_pending.store(true);
|
||||
return;
|
||||
}
|
||||
std::tie(accel, std::ignore) = motion_device->GetStatus();
|
||||
|
|
@ -259,7 +262,7 @@ void Module::UpdateGyroscopeCallback(u64 userdata, s64 cycles_late) {
|
|||
|
||||
Common::Vec3<float> gyro;
|
||||
if (!motion_device) {
|
||||
is_device_reload_pending.exchange(true);
|
||||
is_device_reload_pending.store(true);
|
||||
return;
|
||||
}
|
||||
std::tie(std::ignore, gyro) = motion_device->GetStatus();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue