Compare commits

...

4 commits

Author SHA1 Message Date
lizzie
df6e3acd52 forgot comma... haha 2026-03-26 19:23:20 +00:00
lizzie
554c0d377b androiiii 2026-03-26 04:46:56 +00:00
lizzie
e9e036d935 default=1 2026-03-26 04:40:15 +00:00
lizzie
500ba240d8 [settings] modify reported product_model
Signed-off-by: lizzie <lizzie@eden-emu.dev>
2026-03-26 04:38:51 +00:00
7 changed files with 20 additions and 3 deletions

View file

@ -69,7 +69,8 @@ enum class IntSetting(override val key: String) : AbstractIntSetting {
MY_PAGE_APPLET("my_page_applet_mode"),
INPUT_OVERLAY_AUTO_HIDE("input_overlay_auto_hide"),
OVERLAY_GRID_SIZE("overlay_grid_size"),
GPU_LOG_RING_BUFFER_SIZE("gpu_log_ring_buffer_size")
GPU_LOG_RING_BUFFER_SIZE("gpu_log_ring_buffer_size"),
PRODUCT_MODEL("product_model")
;
override fun getInt(needsGlobal: Boolean): Int = NativeConfig.getInt(key, needsGlobal)

View file

@ -965,6 +965,16 @@ abstract class SettingsItem(
max = 4096
)
)
put(
SpinBoxSetting(
IntSetting.PRODUCT_MODEL,
titleId = R.string.product_model,
descriptionId = R.string.product_model_description,
valueHint = R.string.product_model,
min = 1,
max = 2
)
)
val fastmem = object : AbstractBooleanSetting {
override fun getBoolean(needsGlobal: Boolean): Boolean =

View file

@ -1265,6 +1265,7 @@ class SettingsFragmentPresenter(
add(BooleanSetting.GPU_LOG_MEMORY_TRACKING.key)
add(BooleanSetting.GPU_LOG_DRIVER_DEBUG.key)
add(IntSetting.GPU_LOG_RING_BUFFER_SIZE.key)
add(IntSetting.PRODUCT_MODEL.key)
}
}

View file

@ -586,6 +586,9 @@
<string name="gpu_log_ring_buffer_size_description">Number of recent Vulkan calls to track (default: 512)</string>
<string name="gpu_log_ring_buffer_size_hint">64 to 4096 entries</string>
<string name="product_model">Product model</string>
<string name="product_model_description">Reported product model by HLE firmware</string>
<string name="general">General</string>
<!-- Audio settings strings -->

View file

@ -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, 1, "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{

View file

@ -1158,8 +1158,8 @@ 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;
LOG_WARNING(Service_SET, "(STUBBED) called, product_model={}", product_model);
auto const product_model = ::Settings::values.product_model.GetValue();
LOG_INFO(Service_SET, "called, product_model={}", product_model);
*out_product_model = product_model;
R_SUCCEED();
}

View file

@ -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