androiiii

This commit is contained in:
lizzie 2026-03-26 04:46:56 +00:00 committed by crueter
parent f870aa1f2d
commit c5d53b20c2
5 changed files with 16 additions and 1 deletions

View file

@ -70,6 +70,7 @@ enum class IntSetting(override val key: String) : AbstractIntSetting {
INPUT_OVERLAY_AUTO_HIDE("input_overlay_auto_hide"),
OVERLAY_GRID_SIZE("overlay_grid_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

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