diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2023-06-12 03:15:13 +0200 |
---|---|---|
committer | Charles Lombardo <clombardo169@gmail.com> | 2023-06-12 03:15:13 +0200 |
commit | eb7ccf5249383109f2254578f3cfe2479acb60d5 (patch) | |
tree | 7455571649a1fe3264331bf9f17e404f0b13ee29 /src/android/app | |
parent | Merge pull request #10668 from Kelebek1/reduce_vertex_bindings (diff) | |
download | yuzu-eb7ccf5249383109f2254578f3cfe2479acb60d5.tar yuzu-eb7ccf5249383109f2254578f3cfe2479acb60d5.tar.gz yuzu-eb7ccf5249383109f2254578f3cfe2479acb60d5.tar.bz2 yuzu-eb7ccf5249383109f2254578f3cfe2479acb60d5.tar.lz yuzu-eb7ccf5249383109f2254578f3cfe2479acb60d5.tar.xz yuzu-eb7ccf5249383109f2254578f3cfe2479acb60d5.tar.zst yuzu-eb7ccf5249383109f2254578f3cfe2479acb60d5.zip |
Diffstat (limited to 'src/android/app')
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt | 19 |
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( if (other !is Game) return false - return title == other.title - && description == other.description - && regions == other.regions - && path == other.path - && gameId == other.gameId - && company == other.company - && isHomebrew == other.isHomebrew + return hashCode() == other.hashCode() + } + + override fun hashCode(): Int { + var result = title.hashCode() + result = 31 * result + description.hashCode() + result = 31 * result + regions.hashCode() + result = 31 * result + path.hashCode() + result = 31 * result + gameId.hashCode() + result = 31 * result + company.hashCode() + result = 31 * result + isHomebrew.hashCode() + return result } companion object { |