Joshua Parmenter | 19 Apr 2012 04:49
Picon

SF.net sc3-plugins Git: sc3-plugins branch, master, updated. 3.5-8-gae22cba

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "sc3-plugins".

The branch, master has been updated
       via  ae22cbafb63f5f4e3a48758e7efe2e0e02f7bafc (commit)
      from  83e50a399fa59a13daa4df178f4c518668547f94 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ae22cbafb63f5f4e3a48758e7efe2e0e02f7bafc
Author: Joshua Parmenter <josh@...>
Date:   Wed Apr 18 19:49:09 2012 -0700

    make Atk file methods cross-platform - fix Foa decoder incorrect paths

diff --git a/source/ATK/sc/Classes/ATK.sc b/source/ATK/sc/Classes/ATK.sc
index 903439a..e2b97a7 100644
--- a/source/ATK/sc/Classes/ATK.sc
+++ b/source/ATK/sc/Classes/ATK.sc
 <at>  <at>  -118,17 +118,24  <at>  <at>  Atk {
 	}
 		
 	*openUserSupportDir {
-		("open \"" ++ Atk.userSupportDir ++"\"").unixCmd({arg res, pid; 
-			if(res > 0, {"User Support Dir may not exist. Run \n\tAtk.createUserSupportDir\nto create it".warn})});
+		File.exists(Atk.userSupportDir).if({
+			Atk.userSupportDir.openOS;
+		}, {
+			"User Support Dir may not exist. Run \n\tAtk.createUserSupportDir\nto create it".warn
+		})
 	}

 	*createUserSupportDir {
-		("mkdir \"" ++ Atk.userSupportDir ++ "\"").unixCmd;
+		File.mkdir(Atk.userSupportDir);
+//		("mkdir \"" ++ Atk.userSupportDir ++ "\"").unixCmd;
 	}
 	
 	*openSystemSupportDir {
-		("open \"" ++ Atk.systemSupportDir ++"\"").unixCmd({arg res, pid; 
-			if(res > 0, {"System Support Dir may not exist".warn})});
+		File.exists(Atk.systemSupportDir).if({
+			Atk.systemSupportDir.openOS;
+		}, {
+			"System Support Dir may not exist.".warn
+		})
 	}	
 }

diff --git a/source/ATK/sc/Classes/ATKMatrix.sc b/source/ATK/sc/Classes/ATKMatrix.sc
index 1755bfb..bab33eb 100644
--- a/source/ATK/sc/Classes/ATKMatrix.sc
+++ b/source/ATK/sc/Classes/ATKMatrix.sc
 <at>  <at>  -1685,7 +1685,7  <at>  <at>  FoaDecoderKernel {
 			)
 		});

-		decodersPath	= PathName.new("/Foa/decoders");
+		decodersPath	= PathName.new("/FOA/decoders");

 		^kernelLibPath +/+ decodersPath +/+ PathName.new(kind.asString)
 	}
-----------------------------------------------------------------------

Summary of changes:
 source/ATK/sc/Classes/ATK.sc       |   17 ++++++++++++-----
 source/ATK/sc/Classes/ATKMatrix.sc |    2 +-
 2 files changed, 13 insertions(+), 6 deletions(-)

hooks/post-receive
--

-- 
sc3-plugins

_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/


Gmane