Skip to content

Commit

Permalink
Fixed ROM Path saving bug
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocastello committed Aug 10, 2024
1 parent 463ca1f commit f1a98e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Swift86.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,13 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_INFOPLIST_LOCALIZATIONS = NO;
CODE_SIGN_ENTITLEMENTS = Swift86/Swift86.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = "Beta 4.1";
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Swift86/Preview Content\"";
DEVELOPMENT_TEAM = 53AGWD6XKH;
DEVELOPMENT_TEAM = KB99AZQYGK;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -412,6 +413,7 @@
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.castellodesigns.Swift86;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
};
Expand All @@ -424,12 +426,13 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_INFOPLIST_LOCALIZATIONS = NO;
CODE_SIGN_ENTITLEMENTS = Swift86/Swift86.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = "Beta 4.1";
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Swift86/Preview Content\"";
DEVELOPMENT_TEAM = 53AGWD6XKH;
DEVELOPMENT_TEAM = KB99AZQYGK;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -444,6 +447,7 @@
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.castellodesigns.Swift86;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
};
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion Swift86/Views/GeneralSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ struct GeneralSettingsView: View {
.onReceive(NotificationCenter.default.publisher(for: NSWindow.willCloseNotification)) { notification in
// Reset ROMs path and checkbox if same as default after Settings window close
if let window = notification.object as? NSWindow, window.identifier?.rawValue == "com_apple_SwiftUI_Settings_window",
romsPath == UserDefaults.standard.object(forKey: "RomsPath") as! String, customROMs == true {
romsPath == AppSettings.shared.romsPath, customROMs == true {
UserDefaults.standard.set(appSettings.customROMs, forKey: "CustomROMs")
}
}
Expand Down

0 comments on commit f1a98e8

Please sign in to comment.