Skip to content

Commit

Permalink
Update install script and support hex to dec conv
Browse files Browse the repository at this point in the history
Signed-off-by: black.dragon74 <[email protected]>
  • Loading branch information
black-dragon74 committed Oct 20, 2020
1 parent e53abd1 commit 0d0e117
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion ALCPlugFix-Swift/Constants/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ func getUint64Verb(from stringCommand: String) -> UInt64 {
extension String {
// To be used only in ALCPlugFix
func toUInt64() -> UInt64 {
return UInt64(self.replacingOccurrences(of: "0x", with: "")) ?? 0
return UInt64(self.replacingOccurrences(of: "0x", with: ""), radix: 16) ?? 0
}
}
4 changes: 0 additions & 4 deletions ALCPlugFix-Swift/Misc/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ function cleanUpOldInstall() {
# Remove any existing alc-verb install
sudo launchctl unload /Library/LaunchAgents/com.black-dragon74.ALCPlugFix.plist
sudo rm -rf /Library/LaunchAgents/com.black-dragon74.ALCPlugFix.plist

# Clean up old clients
sudo rm -rf $(which alc-verb)
sudo rm -rf $(which hda-verb)
}

# Function that exits with an error code and message
Expand Down

0 comments on commit 0d0e117

Please sign in to comment.