Compare commits

...

4 Commits

Author SHA1 Message Date
lizzie fe5fd4d0ce forgot comma... haha 2026-03-27 01:17:38 +01:00
lizzie c5d53b20c2 androiiii 2026-03-27 01:17:38 +01:00
lizzie f870aa1f2d default=1 2026-03-27 01:17:38 +01:00
lizzie a6d507f910 [settings] modify reported product_model
Signed-off-by: lizzie <lizzie@eden-emu.dev>
2026-03-27 01:17:38 +01:00
7 changed files with 20 additions and 3 deletions
@@ -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)
@@ -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 =
@@ -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)
}
}
@@ -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 -->
+1
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{
@@ -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();
}
@@ -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