mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-05 03:54:32 +00:00
Fix settings Android
This commit is contained in:
+1
-1
@@ -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))
|
||||
|
||||
+6
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user