mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-25 20:29:08 +02:00
pomelo scraps
This commit is contained in:
parent
7cdd35f934
commit
c686e37b90
29 changed files with 2258 additions and 11 deletions
31
src/ios/EmulationGame.swift
Normal file
31
src/ios/EmulationGame.swift
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
// SPDX-FileCopyrightText: Copyright 2024 Pomelo, Stossy11
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
import Foundation
|
||||
|
||||
struct EmulationGame : Comparable, Hashable, Identifiable {
|
||||
var id = UUID()
|
||||
|
||||
let developer: String
|
||||
let fileURL: URL
|
||||
let imageData: Data
|
||||
let title: String
|
||||
|
||||
func hash(into hasher: inout Hasher) {
|
||||
hasher.combine(id)
|
||||
hasher.combine(developer)
|
||||
hasher.combine(fileURL)
|
||||
hasher.combine(imageData)
|
||||
hasher.combine(title)
|
||||
}
|
||||
|
||||
static func < (lhs: EmulationGame, rhs: Yuzu) -> Bool {
|
||||
lhs.title < rhs.title
|
||||
}
|
||||
|
||||
static func == (lhs: EmulationGame, rhs: Yuzu) -> Bool {
|
||||
lhs.title == rhs.title
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue