mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-26 09:28:59 +02:00
androiiii
This commit is contained in:
parent
e9e036d935
commit
554c0d377b
5 changed files with 16 additions and 1 deletions
|
|
@ -70,6 +70,7 @@ enum class IntSetting(override val key: String) : AbstractIntSetting {
|
||||||
INPUT_OVERLAY_AUTO_HIDE("input_overlay_auto_hide"),
|
INPUT_OVERLAY_AUTO_HIDE("input_overlay_auto_hide"),
|
||||||
OVERLAY_GRID_SIZE("overlay_grid_size"),
|
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)
|
override fun getInt(needsGlobal: Boolean): Int = NativeConfig.getInt(key, needsGlobal)
|
||||||
|
|
|
||||||
|
|
@ -965,6 +965,16 @@ abstract class SettingsItem(
|
||||||
max = 4096
|
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 {
|
val fastmem = object : AbstractBooleanSetting {
|
||||||
override fun getBoolean(needsGlobal: Boolean): Boolean =
|
override fun getBoolean(needsGlobal: Boolean): Boolean =
|
||||||
|
|
|
||||||
|
|
@ -1265,6 +1265,7 @@ class SettingsFragmentPresenter(
|
||||||
add(BooleanSetting.GPU_LOG_MEMORY_TRACKING.key)
|
add(BooleanSetting.GPU_LOG_MEMORY_TRACKING.key)
|
||||||
add(BooleanSetting.GPU_LOG_DRIVER_DEBUG.key)
|
add(BooleanSetting.GPU_LOG_DRIVER_DEBUG.key)
|
||||||
add(IntSetting.GPU_LOG_RING_BUFFER_SIZE.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_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="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>
|
<string name="general">General</string>
|
||||||
|
|
||||||
<!-- Audio settings strings -->
|
<!-- Audio settings strings -->
|
||||||
|
|
|
||||||
|
|
@ -1159,7 +1159,7 @@ Result ISystemSettingsServer::SetDeviceNickName(
|
||||||
Result ISystemSettingsServer::GetProductModel(Out<u32> out_product_model) {
|
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
|
// 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();
|
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;
|
*out_product_model = product_model;
|
||||||
R_SUCCEED();
|
R_SUCCEED();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue