瀏覽代碼

save log for non-console version

David Rose 16 年之前
父節點
當前提交
e9f98e18ef
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      direct/src/plugin_standalone/panda3d.cxx

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

@@ -962,7 +962,11 @@ create_instance(const string &p3d, P3D_window_type window_type,
   } else {
   } else {
     // Send output to the console.
     // Send output to the console.
     token._keyword = "console_output";
     token._keyword = "console_output";
+#ifdef NON_CONSOLE
+    token._value = "0";
+#else
     token._value = "1";
     token._value = "1";
+#endif
     tokens.push_back(token);
     tokens.push_back(token);
   }
   }