Fix settings Android

This commit is contained in:
CamilleLaVey
2026-09-04 17:57:26 -04:00
parent 2d3050e4af
commit 898da17e30
3 changed files with 12 additions and 7 deletions
@@ -39,7 +39,7 @@ abstract class FxUniformSetting(
protected fun commit(value: Float) {
NativePostProcessing.setValue(index, uniform.name, component, value)
NativePostProcessing.store()
NativePostProcessing.persist()
}
override fun reset() = commit(uniform.defaultAt(component))
@@ -269,7 +269,7 @@ class SettingsFragmentPresenter(
isRunnable = true
) {
NativePostProcessing.move(index, -1)
NativePostProcessing.store()
NativePostProcessing.persist()
settingsViewModel.setReloadListAndNotifyDataset(true)
}
)
@@ -281,7 +281,7 @@ class SettingsFragmentPresenter(
isRunnable = true
) {
NativePostProcessing.move(index, 1)
NativePostProcessing.store()
NativePostProcessing.persist()
settingsViewModel.setReloadListAndNotifyDataset(true)
}
)
@@ -292,7 +292,7 @@ class SettingsFragmentPresenter(
isRunnable = true
) {
NativePostProcessing.resetValues(index)
NativePostProcessing.store()
NativePostProcessing.persist()
settingsViewModel.setReloadListAndNotifyDataset(true)
}
)
@@ -302,7 +302,7 @@ class SettingsFragmentPresenter(
isRunnable = true
) {
NativePostProcessing.remove(index)
NativePostProcessing.store()
NativePostProcessing.persist()
settingsViewModel.setReloadListAndNotifyDataset(true)
}
)
@@ -314,7 +314,7 @@ class SettingsFragmentPresenter(
isRunnable = true
) {
NativePostProcessing.append(files[0], techniques[0])
NativePostProcessing.store()
NativePostProcessing.persist()
settingsViewModel.setReloadListAndNotifyDataset(true)
}
)
@@ -340,7 +340,7 @@ class SettingsFragmentPresenter(
override fun setInt(value: Int) {
NativePostProcessing.replace(index, files[value], techniques[value])
NativePostProcessing.store()
NativePostProcessing.persist()
settingsViewModel.setReloadListAndNotifyDataset(true)
}
@@ -42,6 +42,11 @@ object NativePostProcessing {
external fun store()
fun persist() {
store()
NativeConfig.saveGlobalConfig()
}
external fun reload()
external fun getShaderDirectory(): String