diff options
| author | 2023-03-21 01:57:22 -0400 | |
|---|---|---|
| committer | 2023-06-03 00:05:46 -0700 | |
| commit | 1f3b41366c742d05b613bd23845efc9b4669832a (patch) | |
| tree | f07bf297fa2dd81b6beba74c869d1ca54ec04766 /src/android/app | |
| parent | android: Add kotlin parcelize plugin (diff) | |
| download | yuzu-1f3b41366c742d05b613bd23845efc9b4669832a.tar.gz yuzu-1f3b41366c742d05b613bd23845efc9b4669832a.tar.xz yuzu-1f3b41366c742d05b613bd23845efc9b4669832a.zip | |
android: Make Game class parcelable
Diffstat (limited to 'src/android/app')
| -rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt index c45b467a2..91f6c5d75 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt | |||
| @@ -5,9 +5,12 @@ package org.yuzu.yuzu_emu.model | |||
| 5 | 5 | ||
| 6 | import android.content.ContentValues | 6 | import android.content.ContentValues |
| 7 | import android.database.Cursor | 7 | import android.database.Cursor |
| 8 | import android.os.Parcelable | ||
| 9 | import kotlinx.parcelize.Parcelize | ||
| 8 | import java.nio.file.Paths | 10 | import java.nio.file.Paths |
| 9 | import java.util.HashSet | 11 | import java.util.HashSet |
| 10 | 12 | ||
| 13 | @Parcelize | ||
| 11 | class Game( | 14 | class Game( |
| 12 | val title: String, | 15 | val title: String, |
| 13 | val description: String, | 16 | val description: String, |
| @@ -15,7 +18,7 @@ class Game( | |||
| 15 | val path: String, | 18 | val path: String, |
| 16 | val gameId: String, | 19 | val gameId: String, |
| 17 | val company: String | 20 | val company: String |
| 18 | ) { | 21 | ) : Parcelable { |
| 19 | companion object { | 22 | companion object { |
| 20 | val extensions: Set<String> = HashSet( | 23 | val extensions: Set<String> = HashSet( |
| 21 | listOf(".xci", ".nsp", ".nca", ".nro") | 24 | listOf(".xci", ".nsp", ".nca", ".nro") |