mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-19 12:37:58 +03:00
Add a gpuDriver
preference setting
This setting represent the GPU driver selected by the user to be used by the emulator.
This commit is contained in:
parent
1815199d2b
commit
e9f609b923
@ -35,6 +35,9 @@ class PreferenceSettings @Inject constructor(@ApplicationContext private val con
|
|||||||
var orientation by sharedPreferences(context, ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE)
|
var orientation by sharedPreferences(context, ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE)
|
||||||
var respectDisplayCutout by sharedPreferences(context, false)
|
var respectDisplayCutout by sharedPreferences(context, false)
|
||||||
|
|
||||||
|
// GPU
|
||||||
|
var gpuDriver by sharedPreferences(context, SYSTEM_GPU_DRIVER)
|
||||||
|
|
||||||
// Input
|
// Input
|
||||||
var onScreenControl by sharedPreferences(context, true)
|
var onScreenControl by sharedPreferences(context, true)
|
||||||
var onScreenControlRecenterSticks by sharedPreferences(context, true)
|
var onScreenControlRecenterSticks by sharedPreferences(context, true)
|
||||||
@ -42,4 +45,8 @@ class PreferenceSettings @Inject constructor(@ApplicationContext private val con
|
|||||||
// Other
|
// Other
|
||||||
var romFormatFilter by sharedPreferences(context, 0)
|
var romFormatFilter by sharedPreferences(context, 0)
|
||||||
var refreshRequired by sharedPreferences(context, false)
|
var refreshRequired by sharedPreferences(context, false)
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val SYSTEM_GPU_DRIVER = "system"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user