فهرست منبع

fix os x vs windows load

Dave Schuyler 22 سال پیش
والد
کامیت
3da47160ef
2فایلهای تغییر یافته به همراه9 افزوده شده و 12 حذف شده
  1. 7 10
      direct/src/showbase/ShowBase.py
  2. 2 2
      dtool/src/dtoolutil/load_dso.cxx

+ 7 - 10
direct/src/showbase/ShowBase.py

@@ -213,8 +213,7 @@ class ShowBase(DirectObject.DirectObject):
         self.restart()
         self.restart()
 
 
     def exitfunc(self):
     def exitfunc(self):
-        """exitfunc(self)
-
+        """
         This should be assigned to sys.exitfunc to be called just
         This should be assigned to sys.exitfunc to be called just
         before Python shutdown.  It guarantees that the Panda window
         before Python shutdown.  It guarantees that the Panda window
         is closed cleanly, so that we free system resources, restore
         is closed cleanly, so that we free system resources, restore
@@ -236,7 +235,7 @@ class ShowBase(DirectObject.DirectObject):
             self.oldexitfunc()
             self.oldexitfunc()
 
 
     def makeDefaultPipe(self):
     def makeDefaultPipe(self):
-        """makeDefaultPipe(self)
+        """
         Creates the default GraphicsPipe, which will be used to make
         Creates the default GraphicsPipe, which will be used to make
         windows unless otherwise specified.
         windows unless otherwise specified.
         """
         """
@@ -250,7 +249,7 @@ class ShowBase(DirectObject.DirectObject):
         self.pipeList.append(self.pipe)
         self.pipeList.append(self.pipe)
 
 
     def makeAllPipes(self):
     def makeAllPipes(self):
-        """makeAllPipes(self)
+        """
         Creates all GraphicsPipes that the system knows about and fill up
         Creates all GraphicsPipes that the system knows about and fill up
         self.pipeList with them.
         self.pipeList with them.
         """
         """
@@ -285,11 +284,10 @@ class ShowBase(DirectObject.DirectObject):
                     self.notify.info("Could not make graphics pipe %s." % (pipeType.getName()))
                     self.notify.info("Could not make graphics pipe %s." % (pipeType.getName()))
 
 
     def openWindow(self):
     def openWindow(self):
-        """openWindow(self)
+        """
         Invokes ChanConfig to create a window and adds it to the list
         Invokes ChanConfig to create a window and adds it to the list
         of windows that are to be updated every frame.
         of windows that are to be updated every frame.
         """
         """
-
         if self.pipe == None:
         if self.pipe == None:
             self.makeDefaultPipe()
             self.makeDefaultPipe()
 
 
@@ -316,7 +314,7 @@ class ShowBase(DirectObject.DirectObject):
         return win
         return win
 
 
     def closeWindow(self, win):
     def closeWindow(self, win):
-        """closeWindow(self, win)
+        """
         Closes the indicated window and removes it from the list of
         Closes the indicated window and removes it from the list of
         windows.  If it is the main window, clears the main window
         windows.  If it is the main window, clears the main window
         pointer to None.
         pointer to None.
@@ -352,7 +350,7 @@ class ShowBase(DirectObject.DirectObject):
             self.win = None
             self.win = None
 
 
     def openMainWindow(self):
     def openMainWindow(self):
-        """openMainWindow(self)
+        """
         Creates the initial, main window for the application, and sets
         Creates the initial, main window for the application, and sets
         up the mouse and render2d structures appropriately for it.  If
         up the mouse and render2d structures appropriately for it.  If
         this method is called a second time, it will close the
         this method is called a second time, it will close the
@@ -401,8 +399,7 @@ class ShowBase(DirectObject.DirectObject):
         return success
         return success
     
     
     def setupRender(self):
     def setupRender(self):
-        """setupRender(self)
-
+        """
         Creates the render scene graph, the primary scene graph for
         Creates the render scene graph, the primary scene graph for
         rendering 3-d geometry.
         rendering 3-d geometry.
         """
         """

+ 2 - 2
dtool/src/dtoolutil/load_dso.cxx

@@ -18,7 +18,7 @@
 
 
 #include "load_dso.h"
 #include "load_dso.h"
 
 
-#if 1 || defined(PENV_OSX)
+#if defined(PENV_OSX)
 // These are not used on Macintosh OS X
 // These are not used on Macintosh OS X
 
 
 void *
 void *
@@ -33,7 +33,7 @@ unload_dso(void *dso_handle) {
 
 
 string
 string
 load_dso_error() {
 load_dso_error() {
-  const char *message="load_dso_error() unsupported on PS2";
+  const char *message="load_dso_error() unsupported on OS X";
   return message;
   return message;
 }
 }