mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-13 14:21:18 +01:00
swiftuijoystick
This commit is contained in:
parent
9fc078ac49
commit
2387863c4a
5 changed files with 320 additions and 13 deletions
|
|
@ -23,16 +23,11 @@ struct Core : Comparable, Hashable {
|
|||
let fileManager = FileManager.default
|
||||
let documentsDirectory = fileManager.urls(for: .documentDirectory, in: .userDomainMask).first!
|
||||
let destinationURL = documentsDirectory.appendingPathComponent("nand/system/Contents/registered")
|
||||
|
||||
|
||||
if !fileManager.fileExists(atPath: destinationURL.path) {
|
||||
try fileManager.createDirectory(at: destinationURL, withIntermediateDirectories: true, attributes: nil)
|
||||
}
|
||||
|
||||
|
||||
try Zip.unzipFile(fileURL, destination: destinationURL, overwrite: true, password: nil)
|
||||
//try Zip.unzipFile(fileURL, destination: destinationURL, overwrite: true, password: nil)
|
||||
print("File unzipped successfully to \(destinationURL.path)")
|
||||
|
||||
} catch {
|
||||
print("Failed to unzip file: \(error)")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue