David Rose 16 years ago
parent
commit
61a6522314
2 changed files with 6 additions and 3 deletions
  1. 2 3
      direct/src/plugin/p3dInstance.cxx
  2. 4 0
      direct/src/plugin_standalone/panda3d.cxx

+ 2 - 3
direct/src/plugin/p3dInstance.cxx

@@ -1267,13 +1267,12 @@ make_splash_window() {
     // We're hidden, and so is the splash window.
     // We're hidden, and so is the splash window.
     return;
     return;
   }
   }
-  /* temp removing: hack for debugging.
-  if (_wparams.get_window_type() != P3D_WT_embedded && !_stuff_to_download) {
+  if (_wparams.get_window_type() != P3D_WT_embedded && 
+      !_stuff_to_download && _auto_start) {
     // If it's a toplevel or fullscreen window, then we don't want a
     // If it's a toplevel or fullscreen window, then we don't want a
     // splash window until we have stuff to download.
     // splash window until we have stuff to download.
     return;
     return;
   }
   }
-  */
 
 
   _splash_window = new SplashWindowType(this);
   _splash_window = new SplashWindowType(this);
   _splash_window->set_wparams(_wparams);
   _splash_window->set_wparams(_wparams);

+ 4 - 0
direct/src/plugin_standalone/panda3d.cxx

@@ -701,6 +701,10 @@ create_instance(const string &p3d, P3D_window_type window_type,
     tokens.push_back(token);
     tokens.push_back(token);
   }
   }
 
 
+  token._keyword = "auto_start";
+  token._value = "1";
+  tokens.push_back(token);
+
   P3D_token *tokens_p;
   P3D_token *tokens_p;
   size_t num_tokens = tokens.size();
   size_t num_tokens = tokens.size();
   if (!tokens.empty()) {
   if (!tokens.empty()) {