Jelajahi Sumber

groundwork for pirates

Joe Shochet 22 tahun lalu
induk
melakukan
396331fce7

+ 12 - 0
direct/src/directscripts/runPythonEmacs

@@ -40,6 +40,11 @@ if [ "$TOONTOWN" ]; then
     TOONTOWN=`cygpath -w $TOONTOWN`
     TOONTOWN=`cygpath -w $TOONTOWN`
     export TOONTOWN
     export TOONTOWN
 fi
 fi
+if [ "$PIRATES" ]; then
+    if [ "$debug" ]; then echo "PIRATES  $PIRATES"; fi
+    PIRATES=`cygpath -w $PIRATES`
+    export PIRATES
+fi
 if [ "$TOONTAG" ]; then
 if [ "$TOONTAG" ]; then
     if [ "$debug" ]; then echo "TOONTAG   $TOONTAG"; fi
     if [ "$debug" ]; then echo "TOONTAG   $TOONTAG"; fi
     TOONTAG=`cygpath -w $TOONTAG`
     TOONTAG=`cygpath -w $TOONTAG`
@@ -109,6 +114,13 @@ if [ "$TTMODELS" ]; then
     export TTMODELS
     export TTMODELS
 fi
 fi
 
 
+# Pirates models
+if [ "$PMODELS" ]; then
+    if [ "$debug" ]; then echo "PMODELS  $PMODELS"; fi
+    PMODELS=`cygpath -w $PMODELS`
+    export PMODELS
+fi
+
 if [ "$BARMODELS" ]; then
 if [ "$BARMODELS" ]; then
     if [ "$debug" ]; then echo "BARMODELS $BARMODELS"; fi
     if [ "$debug" ]; then echo "BARMODELS $BARMODELS"; fi
     BARMODELS=`cygpath -w $BARMODELS`
     BARMODELS=`cygpath -w $BARMODELS`

+ 3 - 1
direct/src/ffi/genPyCode

@@ -5,6 +5,7 @@
 # usage: genPyCode [opts] [linux|win-debug|win-release|win-publish|install|release] [other libs]
 # usage: genPyCode [opts] [linux|win-debug|win-release|win-publish|install|release] [other libs]
 
 
 # -t adds libtoontown
 # -t adds libtoontown
+# -p adds libpirates
 # -v adds libvrpn
 # -v adds libvrpn
 # -e adds libpandaegg
 # -e adds libpandaegg
 # -n doesn't perform a squeeze
 # -n doesn't perform a squeeze
@@ -16,9 +17,10 @@ optimizeFlag=""
 ppython=ppython
 ppython=ppython
 ppythonOptimizeFlag=""
 ppythonOptimizeFlag=""
 
 
-while getopts tven flag; do
+while getopts tpven flag; do
   case $flag in
   case $flag in
     t) extra_genPyCode_libs="$extra_genPyCode_libs libtoontown" ;;
     t) extra_genPyCode_libs="$extra_genPyCode_libs libtoontown" ;;
+    p) extra_genPyCode_libs="$extra_genPyCode_libs libpirates" ;;
     v) extra_genPyCode_libs="$extra_genPyCode_libs libvrpn" ;;
     v) extra_genPyCode_libs="$extra_genPyCode_libs libvrpn" ;;
     e) extra_genPyCode_libs="$extra_genPyCode_libs libpandaegg" ;;
     e) extra_genPyCode_libs="$extra_genPyCode_libs libpandaegg" ;;
     n) fSqueeze="" ;;
     n) fSqueeze="" ;;

+ 9 - 0
direct/src/showbase/ppython

@@ -49,6 +49,10 @@ if [ "$TOONTOWN" ]; then
     TOONTOWN=`cygpath -w $TOONTOWN`
     TOONTOWN=`cygpath -w $TOONTOWN`
     export TOONTOWN
     export TOONTOWN
 fi
 fi
+if [ "$PIRATES" ]; then
+    PIRATES=`cygpath -w $PIRATES`
+    export PIRATES
+fi
 if [ "$BARTOP" ]; then
 if [ "$BARTOP" ]; then
     BARTOP=`cygpath -w $BARTOP`
     BARTOP=`cygpath -w $BARTOP`
     export BARTOP
     export BARTOP
@@ -77,6 +81,11 @@ if [ "$TTMODELS" ]; then
     TTMODELS=`cygpath -w $TTMODELS`
     TTMODELS=`cygpath -w $TTMODELS`
     export TTMODELS
     export TTMODELS
 fi
 fi
+# Pirates models
+if [ "$PMODELS" ]; then
+    PMODELS=`cygpath -w $PMODELS`
+    export PMODELS
+fi
 
 
 # Export the proper home environment variable
 # Export the proper home environment variable
 HOME=`cygpath -w "$HOME"`
 HOME=`cygpath -w "$HOME"`