Skip to content

Commit

Permalink
Bump to version 1.7
Browse files Browse the repository at this point in the history
- Cleaned up directories
- Updated Scripts (install.sh and uninstall.sh)
- Updated ALCPlugFix
  • Loading branch information
Sniki committed Jun 29, 2020
1 parent 4140e54 commit 6c222ca
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 26 deletions.
10 changes: 8 additions & 2 deletions ALCPlugFix.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
4CE328351DCA9A59002A53ED /* ALCPlugFix */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = ALCPlugFix; sourceTree = BUILT_PRODUCTS_DIR; };
4CE328381DCA9A59002A53ED /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
D96BFF009CB392050D064A88 /* README.MD */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.MD; sourceTree = "<group>"; };
DFD18AC8239F002300E9DD63 /* alc_fix */ = {isa = PBXFileReference; lastKnownFileType = folder; path = alc_fix; sourceTree = "<group>"; };
DF72946424AA7A4B005B9AA5 /* good.win.ALCPlugFix.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = good.win.ALCPlugFix.plist; sourceTree = "<group>"; };
DF72946524AA7A50005B9AA5 /* hda-verb */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.executable"; path = "hda-verb"; sourceTree = "<group>"; };
DF72946624AA7A53005B9AA5 /* install.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = install.sh; sourceTree = "<group>"; };
DF72946724AA7A56005B9AA5 /* uninstall.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = uninstall.sh; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -55,11 +58,14 @@
4CE3282C1DCA9A59002A53ED = {
isa = PBXGroup;
children = (
DFD18AC8239F002300E9DD63 /* alc_fix */,
4CE328371DCA9A59002A53ED /* ALCPlugFix */,
4CE328361DCA9A59002A53ED /* Products */,
4C761DB222710250004042C9 /* Frameworks */,
D96BFF009CB392050D064A88 /* README.MD */,
DF72946424AA7A4B005B9AA5 /* good.win.ALCPlugFix.plist */,
DF72946524AA7A50005B9AA5 /* hda-verb */,
DF72946624AA7A53005B9AA5 /* install.sh */,
DF72946724AA7A56005B9AA5 /* uninstall.sh */,
);
sourceTree = "<group>";
};
Expand Down
3 changes: 1 addition & 2 deletions ALCPlugFix/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ void sigHandler(int signo)
void fixAudio(){
NSLog(@"Fixing...");
NSString *output1 = [[binPrefix stringByAppendingString:@"hda-verb 0x1a SET_PIN_WIDGET_CONTROL 0x24"] runAsCommand];
NSString *output2 = [[binPrefix stringByAppendingString:@"hda-verb 0x15 SET_UNSOLICITED_ENABLE 0x83"] runAsCommand];
}


Expand All @@ -144,7 +143,7 @@ void fixAudio(){
int main(int argc, const char * argv[]) {
@autoreleasepool {

NSLog(@"ALCPlugFix v1.6");
NSLog(@"ALCPlugFix v1.7");
keepRunning = false;

binPrefix = @"";
Expand Down
Binary file removed alc_fix/ALCPlugFix
Binary file not shown.
21 changes: 0 additions & 21 deletions alc_fix/uninstall.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion alc_fix/install.sh → install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DAEMON_FILE=good.win.ALCPlugFix.plist
VERB_FILE=hda-verb
FIX_FILE=ALCPlugFix

echo "Installing ALCPlugFix v1.6"
echo "Installing ALCPlugFix v1.7"

# check if the directory "usr/local/bin" exist, if not then create the directory

Expand Down
12 changes: 12 additions & 0 deletions uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

echo "Uninstalling ALCPlugFix. Root user is required."

sudo rm /usr/local/bin/ALCPlugFix
sudo rm /usr/local/bin/hda-verb
sudo launchctl unload -w /Library/LaunchDaemons/good.win.ALCPlugFix.plist
sudo launchctl remove good.win.ALCPlugFix
sudo rm /Library/LaunchDaemons/good.win.ALCPlugFix.plist

echo "Done!"
exit 0

0 comments on commit 6c222ca

Please sign in to comment.