mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
service: set: Add default eula setting
This commit is contained in:
parent
975d6f1ec4
commit
0fb26acccc
|
@ -405,8 +405,7 @@ struct EulaVersion {
|
||||||
SystemRegionCode region_code;
|
SystemRegionCode region_code;
|
||||||
EulaVersionClockType clock_type;
|
EulaVersionClockType clock_type;
|
||||||
INSERT_PADDING_BYTES(0x4);
|
INSERT_PADDING_BYTES(0x4);
|
||||||
s64 posix_time;
|
Service::PSC::Time::SystemClockContext system_clock_context;
|
||||||
Service::PSC::Time::SteadyClockTimePoint timestamp;
|
|
||||||
};
|
};
|
||||||
static_assert(sizeof(EulaVersion) == 0x30, "EulaVersion is incorrect size");
|
static_assert(sizeof(EulaVersion) == 0x30, "EulaVersion is incorrect size");
|
||||||
|
|
||||||
|
|
|
@ -306,6 +306,17 @@ ISystemSettingsServer::ISystemSettingsServer(Core::System& system_)
|
||||||
RegisterHandlers(functions);
|
RegisterHandlers(functions);
|
||||||
|
|
||||||
SetupSettings();
|
SetupSettings();
|
||||||
|
|
||||||
|
// TODO: Remove this when starter applet is fully functional
|
||||||
|
EulaVersion eula_version{
|
||||||
|
.version = 0x10000,
|
||||||
|
.region_code = m_system_settings.region_code,
|
||||||
|
.clock_type = EulaVersionClockType::SteadyClock,
|
||||||
|
.system_clock_context = m_system_settings.user_system_clock_context,
|
||||||
|
};
|
||||||
|
m_system_settings.eula_versions[0] = eula_version;
|
||||||
|
m_system_settings.eula_version_count = 1;
|
||||||
|
|
||||||
m_save_thread =
|
m_save_thread =
|
||||||
std::jthread([this](std::stop_token stop_token) { StoreSettingsThreadFunc(stop_token); });
|
std::jthread([this](std::stop_token stop_token) { StoreSettingsThreadFunc(stop_token); });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue