early-access version 1961

This commit is contained in:
pineappleEA 2021-08-03 07:02:43 +02:00
parent ec76444e96
commit beced16dd0
3 changed files with 8 additions and 7 deletions

View file

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

View file

@ -570,7 +570,7 @@ std::pair<s32, Errno> Socket::SendTo(u32 flags, const std::vector<u8>& message,
ASSERT(flags == 0); ASSERT(flags == 0);
const sockaddr* to = nullptr; const sockaddr* to = nullptr;
const int tolen = addr ? 0 : sizeof(sockaddr); const int tolen = addr ? sizeof(sockaddr) : 0;
sockaddr host_addr_in; sockaddr host_addr_in;
if (addr) { if (addr) {

View file

@ -888,10 +888,6 @@ void Config::ReadShortcutValues() {
void Config::ReadSystemValues() { void Config::ReadSystemValues() {
qt_config->beginGroup(QStringLiteral("System")); qt_config->beginGroup(QStringLiteral("System"));
ReadBasicSetting(Settings::values.current_user);
Settings::values.current_user = std::clamp<int>(Settings::values.current_user.GetValue(), 0,
Service::Account::MAX_USERS - 1);
ReadGlobalSetting(Settings::values.language_index); ReadGlobalSetting(Settings::values.language_index);
ReadGlobalSetting(Settings::values.region_index); ReadGlobalSetting(Settings::values.region_index);
@ -912,6 +908,10 @@ void Config::ReadSystemValues() {
} }
if (global) { if (global) {
ReadBasicSetting(Settings::values.current_user);
Settings::values.current_user = std::clamp<int>(Settings::values.current_user.GetValue(), 0,
Service::Account::MAX_USERS - 1);
const auto custom_rtc_enabled = const auto custom_rtc_enabled =
ReadSetting(QStringLiteral("custom_rtc_enabled"), false).toBool(); ReadSetting(QStringLiteral("custom_rtc_enabled"), false).toBool();
if (custom_rtc_enabled) { if (custom_rtc_enabled) {
@ -1430,7 +1430,6 @@ void Config::SaveShortcutValues() {
void Config::SaveSystemValues() { void Config::SaveSystemValues() {
qt_config->beginGroup(QStringLiteral("System")); qt_config->beginGroup(QStringLiteral("System"));
WriteBasicSetting(Settings::values.current_user);
WriteGlobalSetting(Settings::values.language_index); WriteGlobalSetting(Settings::values.language_index);
WriteGlobalSetting(Settings::values.region_index); WriteGlobalSetting(Settings::values.region_index);
WriteGlobalSetting(Settings::values.time_zone_index); WriteGlobalSetting(Settings::values.time_zone_index);
@ -1442,6 +1441,8 @@ void Config::SaveSystemValues() {
0, Settings::values.rng_seed.UsingGlobal()); 0, Settings::values.rng_seed.UsingGlobal());
if (global) { if (global) {
WriteBasicSetting(Settings::values.current_user);
WriteSetting(QStringLiteral("custom_rtc_enabled"), Settings::values.custom_rtc.has_value(), WriteSetting(QStringLiteral("custom_rtc_enabled"), Settings::values.custom_rtc.has_value(),
false); false);
WriteSetting(QStringLiteral("custom_rtc"), WriteSetting(QStringLiteral("custom_rtc"),