mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-02 10:39:01 +02:00
pomelo scraps
This commit is contained in:
parent
3222245cfa
commit
6f620a00d0
29 changed files with 2258 additions and 11 deletions
46
src/ios/InfoView.swift
Normal file
46
src/ios/InfoView.swift
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
// SPDX-FileCopyrightText: Copyright 2024 Yuzu, Stossy11
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct InfoView: View {
|
||||
@AppStorage("entitlementNotExists") private var entitlementNotExists: Bool = false
|
||||
@AppStorage("increaseddebugmem") private var increaseddebugmem: Bool = false
|
||||
@AppStorage("extended-virtual-addressing") private var extended: Bool = false
|
||||
let infoDictionary = Bundle.main.infoDictionary
|
||||
|
||||
var body: some View {
|
||||
ScrollView {
|
||||
VStack {
|
||||
Text("Welcome").font(.largeTitle)
|
||||
Divider()
|
||||
Text("Entitlements:").font(.title).font(Font.headline.weight(.bold))
|
||||
Spacer().frame(height: 10)
|
||||
Group {
|
||||
Text("Required:").font(.title2).font(Font.headline.weight(.bold))
|
||||
Spacer().frame(height: 10)
|
||||
Text("Limit: \(String(describing: !entitlementNotExists))")
|
||||
Spacer().frame(height: 10)
|
||||
}
|
||||
Group {
|
||||
Spacer().frame(height: 10)
|
||||
Text("Reccomended:").font(.title2).font(Font.headline.weight(.bold))
|
||||
Spacer().frame(height: 10)
|
||||
Text("Limit: \(String(describing: increaseddebugmem))").padding()
|
||||
Text("Extended: \(String(describing: extended))")
|
||||
}
|
||||
|
||||
}
|
||||
.padding()
|
||||
Text("Version: \(getAppVersion())").foregroundColor(.gray)
|
||||
}
|
||||
}
|
||||
func getAppVersion() -> String {
|
||||
guard let s = infoDictionary?["CFBundleShortVersionString"] as? String else {
|
||||
return "Unknown"
|
||||
}
|
||||
return s
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue