mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 07:38:56 +02:00
add basic ios shit
This commit is contained in:
parent
00221eca72
commit
26b8104892
4 changed files with 42 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ import UIKit
|
|||
import Foundation
|
||||
import QuartzCore.CAMetalLayer
|
||||
|
||||
@main
|
||||
public struct AppUI {
|
||||
|
||||
public static let shared = AppUI()
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@ add_executable(eden-ios
|
|||
EmulationWindow.h
|
||||
EmulationWindow.mm
|
||||
VMA.cpp
|
||||
|
||||
PomeloApp.swift
|
||||
ContentView.swift
|
||||
)
|
||||
# Keep bundle identifier as-is, for compatibility sake
|
||||
set_target_properties(eden-ios PROPERTIES
|
||||
|
|
|
|||
19
src/ios/ContentView.swift
Normal file
19
src/ios/ContentView.swift
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// 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 SwiftUI
|
||||
import Sudachi
|
||||
|
||||
struct ContentView: View {
|
||||
@State var core = Core(games: [], root: FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0])
|
||||
var body: some View {
|
||||
HomeView(core: core).onAppear() {
|
||||
Air.play(AnyView(
|
||||
Text("Select Game").font(.system(size: 100))
|
||||
))
|
||||
// rest of death
|
||||
}
|
||||
}
|
||||
}
|
||||
19
src/ios/PomeloApp.swift
Normal file
19
src/ios/PomeloApp.swift
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// 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 SwiftUI
|
||||
|
||||
infix operator --: LogicalDisjunctionPrecedence
|
||||
|
||||
func --(lhs: Bool, rhs: Bool) -> Bool {
|
||||
return lhs || rhs
|
||||
}
|
||||
|
||||
@main
|
||||
struct PomeloApp: App {
|
||||
var body: some Scene {
|
||||
WindowGroup { ContentView() }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue