diff --git a/src/MeloNX/MeloNX.xcodeproj/project.xcworkspace/xcuserdata/stossy11.xcuserdatad/UserInterfaceState.xcuserstate b/src/MeloNX/MeloNX.xcodeproj/project.xcworkspace/xcuserdata/stossy11.xcuserdatad/UserInterfaceState.xcuserstate index dc032eccc..ab4fbac8c 100644 Binary files a/src/MeloNX/MeloNX.xcodeproj/project.xcworkspace/xcuserdata/stossy11.xcuserdatad/UserInterfaceState.xcuserstate and b/src/MeloNX/MeloNX.xcodeproj/project.xcworkspace/xcuserdata/stossy11.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/src/MeloNX/MeloNX/App/Views/Main/Updates/Games/GameDLCManagerSheet.swift b/src/MeloNX/MeloNX/App/Views/Main/Updates/Games/GameDLCManagerSheet.swift index 589c16545..1d55a5dcf 100644 --- a/src/MeloNX/MeloNX/App/Views/Main/Updates/Games/GameDLCManagerSheet.swift +++ b/src/MeloNX/MeloNX/App/Views/Main/Updates/Games/GameDLCManagerSheet.swift @@ -132,6 +132,7 @@ struct DLCManagerSheet: View { private extension DLCManagerSheet { static func loadDlc(_ game: Game) -> [DownloadableContentContainer] { let jsonURL = dlcJsonPath(for: game) + try? FileManager.default.createDirectory(at: jsonURL.deletingLastPathComponent(), withIntermediateDirectories: true) guard let data = try? Data(contentsOf: jsonURL), var result = try? JSONDecoder().decode([DownloadableContentContainer].self, from: data) else { return [] } diff --git a/src/MeloNX/MeloNX/App/Views/Main/Updates/Games/GameUpdateManagerSheet.swift b/src/MeloNX/MeloNX/App/Views/Main/Updates/Games/GameUpdateManagerSheet.swift index 6ea8f6ceb..145544a08 100644 --- a/src/MeloNX/MeloNX/App/Views/Main/Updates/Games/GameUpdateManagerSheet.swift +++ b/src/MeloNX/MeloNX/App/Views/Main/Updates/Games/GameUpdateManagerSheet.swift @@ -179,6 +179,7 @@ struct UpdateManagerSheet: View { do { let data = try Data(contentsOf: jsonURL) + try FileManager.default.createDirectory(at: jsonURL.deletingLastPathComponent(), withIntermediateDirectories: true) var jsonDict = try JSONSerialization.jsonObject(with: data, options: []) as? [String: Any] ?? [:] if let currentSelected = jsonDict["selected"] as? String, currentSelected == newSelection {