Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # MainScript.sh
- #
- #
- # Original Patch by roddy20 on 3/5/14.
- #
- # Reworked by copylefter for V9R21 on 07/10/2014
- #
- # define
- patch_plugin (){
- sudo perl -pi -e 's|\x84\xC0\xBF\xEE\xD8\xFF\xFF\x0F\x45\xFE\xE8|\x84\xC0\xBF\x00\x00\x00\x00\x0F\x45\xFE\xE8|g' "$1"
- sudo perl -pi -e 's|\x84\xDB\xB8\xEE\xD8\xFF\xFF\x0F\x45\xC1\x48\x81|\x84\xDB\xB8\x00\x00\x00\x00\x0F\x45\xC1\x48\x81|g' "$1"
- echo "$1"
- }
- patch_shell (){
- sudo perl -pi -e 's|\x84\xC0\xBB\xEE\xD8\xFF\xFF\x0F|\x84\xC0\xBB\x00\x00\x00\x00\x0F|g' "$1"
- sudo perl -pi -e 's|\xDB\xB9\xEE\xD8\xFF\xFF\x44\x89|\xDB\xB9\x00\x00\x00\x00\x44\x89|g' "$1"
- sudo perl -pi -e 's|\x00\x85\xC0\x75\x3D\x8B\x45\x0C|\x00\x85\xC0\xEB\x3D\x8B\x45\x0C|g' "$1"
- sudo perl -pi -e 's|\x48\x85\xC0\x75\x40\x48\x8B\x75|\x48\x85\xC0\xEB\x40\x48\x8B\x75|g' "$1"
- echo "$1"
- }
- patch_bundle () {
- if [ -d "$1" ]
- then
- echo $1 " - processing ... "
- for i in "$1"*.bundle; do
- plugin=${i//.bundle/}
- plugin=${plugin//"$1"/}
- patch_plugin "$i/Contents/MacOS/$plugin";
- done
- else
- echo $1 " - is not installed"
- fi
- }
- # Main Script
- if [ -d "/Applications/Waves" ]
- then
- echo "Starting ..."
- patch_bundle /Applications/Waves/Plug-Ins\ V9/
- patch_bundle /Applications/Waves/Plug-Ins\ V9/ArtistDLLV9.3/
- patch_bundle /Applications/Waves/Plug-Ins\ V9/GTR/
- patch_bundle /Applications/Waves/Plug-Ins\ V9/GTRSolo/
- echo "Patching WaveShells..."
- patch_shell /Library/Audio/Plug-Ins/Components/WaveShell-AU\ 9.3.component/Contents/MacOS/WaveShell-AU
- patch_shell /Applications/Waves/Waveshells/WaveShell-AU\ 9.3.component/Contents/MacOS/WaveShell-AU
- patch_shell /Library/Audio/Plug-Ins/VST3/WaveShell-VST3\ 9.3.vst3/Contents/MacOS/WaveShell-VST3
- patch_shell /Applications/Waves/Waveshells/WaveShell-VST3\ 9.3.vst3/Contents/MacOS/WaveShell-VST3
- patch_shell /Library/Audio/Plug-Ins/VST/WaveShell-VST\ 9.3.vst/Contents/MacOS/WaveShell-VST
- patch_shell /Applications/Waves/Waveshells/WaveShell-VST\ 9.3.vst/Contents/MacOS/WaveShell-VST
- patch_shell /Library/Application\ Support/Avid/Audio/Plug-Ins/WaveShell-AAX\ 9.3.aaxplugin/Contents/MacOS/WaveShell-AAX
- patch_shell /Applications/Waves/Waveshells/WaveShell-AAX\ 9.3.aaxplugin/Contents/MacOS/WaveShell-AAX
- patch_shell /Library/Application\ Support/Digidesign/Plug-Ins/WaveShell-DAE\ 9.3.dpm/Contents/MacOS/WaveShell-DAE
- patch_shell /Applications/Waves/Waveshells/WaveShell-DAE\ 9.3.dpm/Contents/MacOS/WaveShell-DAE
- #if [ -d "/Applications/Waves/Waveshells/WaveShell-WPAPI_1 9.3.bundle" ]
- #then
- #patch_shell /Applications/Waves/Waveshells/WaveShell-WPAPI_1\ 9.3.bundle/Contents/MacOS/WaveShell-WPAPI_1
- #else
- #echo "WaveShell-WPAPI_1 9.3.bundle is not installed"
- #fi
- echo "Patching Apps..."
- if [ -d "/Applications/Waves/Applications/CODEX App.app" ]
- then
- patch_shell /Applications/Waves/Applications/CODEX\ App.app/Contents/MacOS/libCODEXAppCore.dylib
- else
- echo "Element App is not installed"
- fi
- if [ -d "/Applications/Waves/Applications/Element App.app" ]
- then
- patch_shell /Applications/Waves/Applications/Element\ App.app/Contents/MacOS/libElementAppCore.dylib
- else
- echo "Element App is not installed"
- fi
- if [ -d "/Applications/Waves/Applications/GTR 3.5.app" ]
- then
- patch_shell /Applications/Waves/Applications/GTR\ 3.5.app/Contents/MacOS/libQtGTRCore.dylib
- else
- echo "GTR 3.5 App is not installed"
- fi
- if [ -d "/Applications/Waves/Applications/GTRSolo 3.5.app" ]
- then
- patch_shell /Applications/Waves/Applications/GTRSolo\ 3.5.app/Contents/MacOS/libQtGTRCore.dylib
- else
- echo "GTRSolo 3.5 App is not installed"
- fi
- # MultiRack
- #if [ -d "/Applications/Waves/MultiRack/MultiRack.app/" ]
- #then
- #patch_shell /Applications/Waves/MultiRack/MultiRack.app/Contents/MacOS/MultiRackCore.dylib
- #else
- #echo "MultiRack App is not installed"
- #fi
- # SoundGrid
- #if [ -d "/Applications/Waves/SoundGrid/MultiRack SoundGrid.app/" ]
- #then
- #patch_shell /Applications/Waves/SoundGrid/MultiRack\ SoundGrid.app/Contents/MacOS/MultiRackCore\ SoundGrid.dylib
- #else
- #echo "MultiRack SoundGrid App is not installed"
- #fi
- echo "Finished! Original Patch by roddy20 - reworked for V9R21 by copylefter"
- else
- echo "Waves is not installed - download and install Waves"
- open http://www.waves.com/downloads/v9
- echo "Finished. (c) 2014 roddy20"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement