early-access version 3463

This commit is contained in:
pineappleEA 2023-03-18 19:22:01 +01:00
parent 6cb085031d
commit d76548b8a5
3 changed files with 7 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 3462. This is the source code for early-access 3463.
## Legal Notice ## Legal Notice

View file

@ -9,10 +9,11 @@
#include <memory> #include <memory>
#include <mutex> #include <mutex>
#include <new> #include <new>
#include <stop_token>
#include <type_traits> #include <type_traits>
#include <utility> #include <utility>
#include "common/polyfill_thread.h"
namespace Common { namespace Common {
#if defined(__cpp_lib_hardware_interference_size) #if defined(__cpp_lib_hardware_interference_size)
@ -78,7 +79,7 @@ public:
auto& slot = slots[idx(tail)]; auto& slot = slots[idx(tail)];
if (!slot.turn.test()) { if (!slot.turn.test()) {
std::unique_lock lock{cv_mutex}; std::unique_lock lock{cv_mutex};
cv.wait(lock, stop, [&slot] { return slot.turn.test(); }); Common::CondvarWait(cv, lock, stop, [&slot] { return slot.turn.test(); });
} }
v = slot.move(); v = slot.move();
slot.destroy(); slot.destroy();

View file

@ -189,6 +189,8 @@ QList<QWidget*> ConfigureInput::GetSubTabs() const {
} }
void ConfigureInput::ApplyConfiguration() { void ConfigureInput::ApplyConfiguration() {
const bool was_global = Settings::values.players.UsingGlobal();
Settings::values.players.SetGlobal(true);
for (auto* controller : player_controllers) { for (auto* controller : player_controllers) {
controller->ApplyConfiguration(); controller->ApplyConfiguration();
} }
@ -201,6 +203,7 @@ void ConfigureInput::ApplyConfiguration() {
Settings::values.vibration_enabled.SetValue(ui->vibrationGroup->isChecked()); Settings::values.vibration_enabled.SetValue(ui->vibrationGroup->isChecked());
Settings::values.motion_enabled.SetValue(ui->motionGroup->isChecked()); Settings::values.motion_enabled.SetValue(ui->motionGroup->isChecked());
Settings::values.players.SetGlobal(was_global);
} }
void ConfigureInput::changeEvent(QEvent* event) { void ConfigureInput::changeEvent(QEvent* event) {