Skip to content

Commit c822eef

Browse files
committed
Clover.app v1.08 Beta
Fixes and improvement for the Disable Sleep Proxy client and the save NVRAM functions. Other small fixes.
1 parent d447228 commit c822eef

File tree

5 files changed

+175
-113
lines changed

5 files changed

+175
-113
lines changed

CloverApp/Clover.xcodeproj/project.pbxproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@
855855
CODE_SIGN_ENTITLEMENTS = Clover/Clover.entitlements;
856856
CODE_SIGN_STYLE = Automatic;
857857
COMBINE_HIDPI_IMAGES = YES;
858-
CURRENT_PROJECT_VERSION = 1.07;
858+
CURRENT_PROJECT_VERSION = 1.08;
859859
FRAMEWORK_SEARCH_PATHS = (
860860
"$(inherited)",
861861
"$(PROJECT_DIR)/Clover/Frameworks",
@@ -869,7 +869,7 @@
869869
"$(inherited)",
870870
"$(PROJECT_DIR)/Clover/Frameworks",
871871
);
872-
MARKETING_VERSION = 1.07;
872+
MARKETING_VERSION = 1.08;
873873
PRODUCT_BUNDLE_IDENTIFIER = org.slice.Clover;
874874
PRODUCT_NAME = "$(TARGET_NAME)";
875875
SWIFT_VERSION = 5.0;
@@ -884,7 +884,7 @@
884884
CODE_SIGN_ENTITLEMENTS = Clover/Clover.entitlements;
885885
CODE_SIGN_STYLE = Automatic;
886886
COMBINE_HIDPI_IMAGES = YES;
887-
CURRENT_PROJECT_VERSION = 1.07;
887+
CURRENT_PROJECT_VERSION = 1.08;
888888
FRAMEWORK_SEARCH_PATHS = (
889889
"$(inherited)",
890890
"$(PROJECT_DIR)/Clover/Frameworks",
@@ -898,7 +898,7 @@
898898
"$(inherited)",
899899
"$(PROJECT_DIR)/Clover/Frameworks",
900900
);
901-
MARKETING_VERSION = 1.07;
901+
MARKETING_VERSION = 1.08;
902902
PRODUCT_BUNDLE_IDENTIFIER = org.slice.Clover;
903903
PRODUCT_NAME = "$(TARGET_NAME)";
904904
SWIFT_VERSION = 5.0;

CloverApp/Clover/Disks.swift

+6-1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ func getMediaName(from diskOrMtp: String) -> String? {
147147

148148
return name
149149
}
150+
150151
/// Get Media Name (kDADiskDescriptionDeviceProtocolKey).
151152
func getDeviceProtocol(from diskOrMtp: String) -> String {
152153
var prot : String = kNotAvailable
@@ -343,6 +344,7 @@ func isMountPoint(path: String) -> Bool {
343344
return (mtp != nil)
344345
}
345346

347+
/// mount the given disk object. The path for the mount point is optional.
346348
func mount(disk bsdName: String, at path: String?) {
347349
var disk : String = bsdName
348350
if disk.hasPrefix("disk") || disk.hasPrefix("/dev/disk") {
@@ -401,6 +403,7 @@ func mount(disk bsdName: String, at path: String?) {
401403
}
402404
}
403405

406+
/// mount the given disk object. The path for the mount point is optional. Code executed in a closure that return a boolean value.
404407
func mount(disk bsdName: String,
405408
at path: String?,
406409
reply: @escaping (Bool) -> ()) {
@@ -467,6 +470,7 @@ func mount(disk bsdName: String,
467470
reply(false)
468471
}
469472

473+
/// unmount the given disk object or mount point. force used to kill any pid is using the disk.
470474
func umount(disk diskOrMtp: String, force: Bool) {
471475
let disk : String = diskOrMtp
472476
let mtp : String? = getMountPoint(from: diskOrMtp)
@@ -517,6 +521,7 @@ func umount(disk diskOrMtp: String, force: Bool) {
517521
}
518522
}
519523

524+
/// unmount the given disk object or mount point. force used to kill any pid is using the disk. Code executed in a closure that return a boolean value.
520525
func umount(disk diskOrMtp: String,
521526
force: Bool,
522527
reply: @escaping (Bool) -> ()) {
@@ -574,6 +579,7 @@ func umount(disk diskOrMtp: String,
574579
reply(false)
575580
}
576581

582+
/// Helper function for the mount/umout call back
577583
fileprivate func printDAReturn(r: DAReturn) -> String {
578584
switch Int(r) {
579585
case kDAReturnError:
@@ -603,5 +609,4 @@ fileprivate func printDAReturn(r: DAReturn) -> String {
603609
default:
604610
return "Unknown"
605611
}
606-
607612
}

CloverApp/Clover/SettingsView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ class SettingsViewController: NSViewController, NSTextFieldDelegate, URLSessionD
392392
let nvdata = nvram.object(forKey: key) as? Data
393393
value = String(decoding: nvdata ?? Data(), as: UTF8.self)
394394
}
395-
self.disbaleSleepProxyButton.state = (value == "true") ? .on : .off
395+
self.makeRootRWButton.state = (value == "true") ? .on : .off
396396
}
397397
}
398398

0 commit comments

Comments
 (0)