yuzu-emu
/
yuzu
Archived
1
0
Fork 0

android: Convert FloatSetting to Kotlin

This commit is contained in:
Charles Lombardo 2023-03-07 17:19:36 -05:00 committed by bunnei
parent 88b9d484e8
commit 2439fc8374
2 changed files with 9 additions and 23 deletions

View File

@ -1,23 +0,0 @@
package org.yuzu.yuzu_emu.features.settings.model;
public final class FloatSetting extends Setting {
private float mValue;
public FloatSetting(String key, String section, float value) {
super(key, section);
mValue = value;
}
public float getValue() {
return mValue;
}
public void setValue(float value) {
mValue = value;
}
@Override
public String getValueAsString() {
return Float.toString(mValue);
}
}

View File

@ -0,0 +1,9 @@
package org.yuzu.yuzu_emu.features.settings.model
class FloatSetting(
key: String,
section: String,
var value: Float
) : Setting(key, section) {
override val valueAsString = value.toString()
}