summaryrefslogtreecommitdiff
path: root/src/android
diff options
context:
space:
mode:
authorGravatar Charles Lombardo2023-06-11 21:15:13 -0400
committerGravatar Charles Lombardo2023-06-11 21:15:13 -0400
commiteb7ccf5249383109f2254578f3cfe2479acb60d5 (patch)
tree7455571649a1fe3264331bf9f17e404f0b13ee29 /src/android
parentMerge pull request #10668 from Kelebek1/reduce_vertex_bindings (diff)
downloadyuzu-eb7ccf5249383109f2254578f3cfe2479acb60d5.tar.gz
yuzu-eb7ccf5249383109f2254578f3cfe2479acb60d5.tar.xz
yuzu-eb7ccf5249383109f2254578f3cfe2479acb60d5.zip
android: Use autogenerated hash code function for Game class
Diffstat (limited to 'src/android')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt19
1 files changed, 12 insertions, 7 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 3d6782c49..35d8000c5 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
@@ -26,13 +26,18 @@ class Game(
26 if (other !is Game) 26 if (other !is Game)
27 return false 27 return false
28 28
29 return title == other.title 29 return hashCode() == other.hashCode()
30 && description == other.description 30 }
31 && regions == other.regions 31
32 && path == other.path 32 override fun hashCode(): Int {
33 && gameId == other.gameId 33 var result = title.hashCode()
34 && company == other.company 34 result = 31 * result + description.hashCode()
35 && isHomebrew == other.isHomebrew 35 result = 31 * result + regions.hashCode()
36 result = 31 * result + path.hashCode()
37 result = 31 * result + gameId.hashCode()
38 result = 31 * result + company.hashCode()
39 result = 31 * result + isHomebrew.hashCode()
40 return result
36 } 41 }
37 42
38 companion object { 43 companion object {