mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 05:28:56 +02:00
[settings] modify reported product_model
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
47c6a73971
commit
a6d507f910
3 changed files with 3 additions and 1 deletions
|
|
@ -640,6 +640,7 @@ struct Values {
|
|||
SwitchableSetting<TimeZone, true> time_zone_index{linkage, TimeZone::Auto, "time_zone_index", Category::System};
|
||||
Setting<u32> serial_battery{linkage, 0, "serial_battery", Category::System};
|
||||
Setting<u32> serial_unit{linkage, 0, "serial_unit", Category::System};
|
||||
Setting<u32> product_model{linkage, 0, "product_model", Category::System};
|
||||
// Measured in seconds since epoch
|
||||
SwitchableSetting<bool> custom_rtc_enabled{linkage, false, "custom_rtc_enabled", Category::System, Specialization::Paired, true, true};
|
||||
SwitchableSetting<s64> custom_rtc{
|
||||
|
|
|
|||
|
|
@ -1158,7 +1158,7 @@ Result ISystemSettingsServer::SetDeviceNickName(
|
|||
|
||||
Result ISystemSettingsServer::GetProductModel(Out<u32> out_product_model) {
|
||||
// Most certainly should be 1 -- definitely should not be 2, but it's worth tinkering with anyways
|
||||
u32 const product_model = 1;
|
||||
auto const product_model = ::Settings::values.product_model.GetValue();
|
||||
LOG_WARNING(Service_SET, "(STUBBED) called, product_model={}", product_model);
|
||||
*out_product_model = product_model;
|
||||
R_SUCCEED();
|
||||
|
|
|
|||
|
|
@ -329,6 +329,7 @@ std::unique_ptr<TranslationMap> InitializeTranslations(QObject* parent) {
|
|||
INSERT(Settings, current_user, QString(), QString());
|
||||
INSERT(Settings, serial_unit, tr("Unit Serial"), QString());
|
||||
INSERT(Settings, serial_battery, tr("Battery Serial"), QString());
|
||||
INSERT(Settings, product_model, tr("Product Model"), QString());
|
||||
INSERT(Settings, debug_knobs, tr("Debug knobs"), QString());
|
||||
|
||||
// Controls
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue