[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] SF.net SVN: supercollider: [7381] trunk/Standalone Resources/SCClassLibrary /DefaultLibrary/Main.sc



Revision: 7381
          http://svn.sourceforge.net/supercollider/?rev=7381&view=rev
Author:   joshpar
Date:     2008-02-23 15:08:30 -0800 (Sat, 23 Feb 2008)

Log Message:
-----------
fix up Main.sc for standalones

Modified Paths:
--------------
    trunk/Standalone Resources/SCClassLibrary/DefaultLibrary/Main.sc

Modified: trunk/Standalone Resources/SCClassLibrary/DefaultLibrary/Main.sc
===================================================================
--- trunk/Standalone Resources/SCClassLibrary/DefaultLibrary/Main.sc	2008-02-23 22:26:55 UTC (rev 7380)
+++ trunk/Standalone Resources/SCClassLibrary/DefaultLibrary/Main.sc	2008-02-23 23:08:30 UTC (rev 7381)
@@ -7,6 +7,12 @@
 	var	<>nowExecutingPath;
 
 	startup {
+		// setup the platform first so that class initializers can call platform methods.
+		// create the platform, then intialize it so that initPlatform can call methods
+		// that depend on thisProcess.platform methods.
+		platform = this.platformClass.new;
+		platform.initPlatform;
+
 		super.startup;
 		// set the 's' interpreter variable to the internal server.
 		interpreter.s = Server.internal;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.