diff options
| author | 2023-03-07 17:19:48 -0500 | |
|---|---|---|
| committer | 2023-06-03 00:05:36 -0700 | |
| commit | 6e7fdcb48469d9b469cea9675eff41f7ba27fac3 (patch) | |
| tree | 865f41e5e543c42261e4017d20bc0299715d898b /src/android | |
| parent | android: Convert FloatSetting to Kotlin (diff) | |
| download | yuzu-6e7fdcb48469d9b469cea9675eff41f7ba27fac3.tar.gz yuzu-6e7fdcb48469d9b469cea9675eff41f7ba27fac3.tar.xz yuzu-6e7fdcb48469d9b469cea9675eff41f7ba27fac3.zip | |
android: Convert IntSetting to Kotlin
Diffstat (limited to 'src/android')
| -rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.java | 23 | ||||
| -rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt | 9 |
2 files changed, 9 insertions, 23 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.java b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.java deleted file mode 100644 index 001f27579..000000000 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.java +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | package org.yuzu.yuzu_emu.features.settings.model; | ||
| 2 | |||
| 3 | public final class IntSetting extends Setting { | ||
| 4 | private int mValue; | ||
| 5 | |||
| 6 | public IntSetting(String key, String section, int value) { | ||
| 7 | super(key, section); | ||
| 8 | mValue = value; | ||
| 9 | } | ||
| 10 | |||
| 11 | public int getValue() { | ||
| 12 | return mValue; | ||
| 13 | } | ||
| 14 | |||
| 15 | public void setValue(int value) { | ||
| 16 | mValue = value; | ||
| 17 | } | ||
| 18 | |||
| 19 | @Override | ||
| 20 | public String getValueAsString() { | ||
| 21 | return Integer.toString(mValue); | ||
| 22 | } | ||
| 23 | } | ||
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt new file mode 100644 index 000000000..a5f976f4e --- /dev/null +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | package org.yuzu.yuzu_emu.features.settings.model | ||
| 2 | |||
| 3 | class IntSetting( | ||
| 4 | key: String, | ||
| 5 | section: String, | ||
| 6 | var value: Int | ||
| 7 | ) : Setting(key, section) { | ||
| 8 | override val valueAsString = value.toString() | ||
| 9 | } | ||