Files
eden/src/ios/EmulationGame.swift
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
830 B
Swift
Raw Normal View History

2026-03-31 01:53:04 +00:00
// 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)
}
2026-04-01 16:39:54 +00:00
static func < (lhs: EmulationGame, rhs: EmulationGame) -> Bool {
2026-03-31 01:53:04 +00:00
lhs.title < rhs.title
}
2026-04-01 16:39:54 +00:00
static func == (lhs: EmulationGame, rhs: EmulationGame) -> Bool {
2026-03-31 01:53:04 +00:00
lhs.title == rhs.title
}
}