mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-29 14:57:41 -05:00
android: Make Game class parcelable
This commit is contained in:
parent
c53e927368
commit
1f3b41366c
1 changed files with 4 additions and 1 deletions
|
@ -5,9 +5,12 @@ package org.yuzu.yuzu_emu.model
|
||||||
|
|
||||||
import android.content.ContentValues
|
import android.content.ContentValues
|
||||||
import android.database.Cursor
|
import android.database.Cursor
|
||||||
|
import android.os.Parcelable
|
||||||
|
import kotlinx.parcelize.Parcelize
|
||||||
import java.nio.file.Paths
|
import java.nio.file.Paths
|
||||||
import java.util.HashSet
|
import java.util.HashSet
|
||||||
|
|
||||||
|
@Parcelize
|
||||||
class Game(
|
class Game(
|
||||||
val title: String,
|
val title: String,
|
||||||
val description: String,
|
val description: String,
|
||||||
|
@ -15,7 +18,7 @@ class Game(
|
||||||
val path: String,
|
val path: String,
|
||||||
val gameId: String,
|
val gameId: String,
|
||||||
val company: String
|
val company: String
|
||||||
) {
|
) : Parcelable {
|
||||||
companion object {
|
companion object {
|
||||||
val extensions: Set<String> = HashSet(
|
val extensions: Set<String> = HashSet(
|
||||||
listOf(".xci", ".nsp", ".nca", ".nro")
|
listOf(".xci", ".nsp", ".nca", ".nro")
|
||||||
|
|
Loading…
Reference in a new issue