forked from MeloNX/MeloNX
make toggle not able to be dragged
This commit is contained in:
parent
9fa29efaf4
commit
f2ea6448dc
Binary file not shown.
@ -12,12 +12,12 @@
|
|||||||
<key>Ryujinx.xcscheme_^#shared#^_</key>
|
<key>Ryujinx.xcscheme_^#shared#^_</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>orderHint</key>
|
<key>orderHint</key>
|
||||||
<integer>2</integer>
|
<integer>4</integer>
|
||||||
</dict>
|
</dict>
|
||||||
<key>com.Stossy11.MeloNX.RyujinxAg.xcscheme_^#shared#^_</key>
|
<key>com.Stossy11.MeloNX.RyujinxAg.xcscheme_^#shared#^_</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>orderHint</key>
|
<key>orderHint</key>
|
||||||
<integer>1</integer>
|
<integer>3</integer>
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
<key>SuppressBuildableAutocreation</key>
|
<key>SuppressBuildableAutocreation</key>
|
||||||
|
@ -11,6 +11,7 @@ import UniformTypeIdentifiers
|
|||||||
|
|
||||||
struct GameLibraryView: View {
|
struct GameLibraryView: View {
|
||||||
@Binding var startemu: Game?
|
@Binding var startemu: Game?
|
||||||
|
// @State var importDLCs = false
|
||||||
@State private var games: [Game] = []
|
@State private var games: [Game] = []
|
||||||
@State private var searchText = ""
|
@State private var searchText = ""
|
||||||
@State private var isSearching = false
|
@State private var isSearching = false
|
||||||
@ -154,31 +155,35 @@ struct GameLibraryView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Button {
|
Menu("Firmware") {
|
||||||
Ryujinx.shared.removeFirmware()
|
Button {
|
||||||
let firmware = Ryujinx.shared.fetchFirmwareVersion()
|
Ryujinx.shared.removeFirmware()
|
||||||
firmwareversion = (firmware == "" ? "0" : firmware)
|
let firmware = Ryujinx.shared.fetchFirmwareVersion()
|
||||||
} label: {
|
firmwareversion = (firmware == "" ? "0" : firmware)
|
||||||
Text("Remove Firmware")
|
} label: {
|
||||||
}
|
Text("Remove Firmware")
|
||||||
|
}
|
||||||
|
|
||||||
Button {
|
|
||||||
let game = Game(containerFolder: URL(string: "none")!, fileType: .item, fileURL: URL(string: "MiiMaker")!, titleName: "Mii Maker", titleId: "0", developer: "Nintendo", version: firmwareversion)
|
Button {
|
||||||
|
let game = Game(containerFolder: URL(string: "none")!, fileType: .item, fileURL: URL(string: "MiiMaker")!, titleName: "Mii Maker", titleId: "0", developer: "Nintendo", version: firmwareversion)
|
||||||
self.startemu = game
|
|
||||||
} label: {
|
self.startemu = game
|
||||||
Text("Mii Maker")
|
} label: {
|
||||||
}
|
Text("Mii Maker")
|
||||||
Button {
|
}
|
||||||
DispatchQueue.main.async {
|
Button {
|
||||||
isImporting.toggle()
|
DispatchQueue.main.async {
|
||||||
|
isImporting.toggle()
|
||||||
|
}
|
||||||
|
} label: {
|
||||||
|
Text("Open game from system")
|
||||||
}
|
}
|
||||||
} label: {
|
|
||||||
Text("Open game from system")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
let documentsUrl = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!
|
let documentsUrl = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!
|
||||||
let sharedurl = documentsUrl.absoluteString.replacingOccurrences(of: "file://", with: "shareddocuments://")
|
let sharedurl = documentsUrl.absoluteString.replacingOccurrences(of: "file://", with: "shareddocuments://")
|
||||||
|
@ -226,6 +226,7 @@ struct SettingsView: View {
|
|||||||
.font(.body)
|
.font(.body)
|
||||||
}
|
}
|
||||||
.tint(.blue)
|
.tint(.blue)
|
||||||
|
.onDrag({ NSItemProvider() })
|
||||||
} label: {
|
} label: {
|
||||||
|
|
||||||
if let controller = currentControllers.firstIndex(where: { $0.id == controller.id } ) {
|
if let controller = currentControllers.firstIndex(where: { $0.id == controller.id } ) {
|
||||||
|
@ -322,7 +322,7 @@ namespace Ryujinx.Headless.SDL2
|
|||||||
|
|
||||||
var gameInfo = GetGameInfo(stream, extension);
|
var gameInfo = GetGameInfo(stream, extension);
|
||||||
|
|
||||||
return new GameInfoNative(0, gameInfo.TitleName, 0, gameInfo.Developer, 0, gameInfo.Icon);
|
return new GameInfoNative(gameInfo.FileSize, gameInfo.TitleName, gameInfo.TitleId, gameInfo.Developer, gameInfo.Version, gameInfo.Icon);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static GameInfo? GetGameInfo(Stream gameStream, string extension)
|
public static GameInfo? GetGameInfo(Stream gameStream, string extension)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user