mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 12:43:44 -04:00
move use_vfs to express
This commit is contained in:
parent
03ae0c6f89
commit
a33194e89f
@ -29,7 +29,7 @@
|
||||
#include "filename.h"
|
||||
#include "transformState.h"
|
||||
#include "dcast.h"
|
||||
#include "config_util.h"
|
||||
#include "config_express.h"
|
||||
#include "virtualFileSystem.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "config_egg.h"
|
||||
|
||||
#include "config_util.h"
|
||||
#include "config_express.h"
|
||||
#include "string_utils.h"
|
||||
#include "dSearchPath.h"
|
||||
#include "virtualFileSystem.h"
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "sceneGraphReducer.h"
|
||||
#include "virtualFileSystem.h"
|
||||
#include "config_util.h"
|
||||
#include "config_express.h"
|
||||
|
||||
static PT(PandaNode)
|
||||
load_from_loader(EggLoader &loader) {
|
||||
|
@ -41,8 +41,8 @@ ConfigureFn(config_express) {
|
||||
ReferenceCount::init_type();
|
||||
TypedObject::init_type();
|
||||
TypedReferenceCount::init_type();
|
||||
VirtualFileComposite::init_type();
|
||||
VirtualFile::init_type();
|
||||
VirtualFileComposite::init_type();
|
||||
VirtualFileMount::init_type();
|
||||
VirtualFileMountMultifile::init_type();
|
||||
VirtualFileMountSystem::init_type();
|
||||
@ -146,6 +146,12 @@ const int patchfile_buffer_size =
|
||||
const int patchfile_zone_size =
|
||||
config_express.GetInt("patchfile-zone-size", 10000);
|
||||
|
||||
// Set this true to use the VirtualFileSystem mechanism for loading
|
||||
// models, etc. Since the VirtualFileSystem maps to the same as the
|
||||
// actual file system by default, there is probably no reason to set
|
||||
// this false, except for testing or if you mistrust the new code.
|
||||
const bool use_vfs = config_express.GetBool("use-vfs", true);
|
||||
|
||||
|
||||
// Returns the configure object for accessing config variables from a
|
||||
// scripting language.
|
||||
|
@ -19,9 +19,9 @@
|
||||
#ifndef __CONFIG_EXPRESS_H__
|
||||
#define __CONFIG_EXPRESS_H__
|
||||
|
||||
#include <pandabase.h>
|
||||
#include <notifyCategoryProxy.h>
|
||||
#include <dconfig.h>
|
||||
#include "pandabase.h"
|
||||
#include "notifyCategoryProxy.h"
|
||||
#include "dconfig.h"
|
||||
|
||||
ConfigureDecl(config_express, EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS);
|
||||
NotifyCategoryDecl(express, EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS);
|
||||
@ -45,6 +45,8 @@ extern const int patchfile_increment_size;
|
||||
extern const int patchfile_buffer_size;
|
||||
extern const int patchfile_zone_size;
|
||||
|
||||
extern EXPCL_PANDAEXPRESS const bool use_vfs;
|
||||
|
||||
// Expose the Config variable for Python access.
|
||||
BEGIN_PUBLISH
|
||||
typedef Config::Config<ConfigureGetConfig_config_express> ConfigExpress;
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "texturePool.h"
|
||||
#include "config_gobj.h"
|
||||
#include "config_util.h"
|
||||
#include "config_express.h"
|
||||
#include "virtualFileSystem.h"
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "bamReader.h"
|
||||
#include "bamWriter.h"
|
||||
#include "filename.h"
|
||||
#include "config_express.h"
|
||||
#include "virtualFileSystem.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include "loaderFileTypeRegistry.h"
|
||||
#include "config_pgraph.h"
|
||||
|
||||
#include "config_util.h"
|
||||
#include "config_express.h"
|
||||
#include "virtualFileSystem.h"
|
||||
#include "event.h"
|
||||
#include "pt_Event.h"
|
||||
|
@ -20,8 +20,9 @@
|
||||
#include "config_pgraph.h"
|
||||
#include "bamFile.h"
|
||||
|
||||
#include "virtualFileSystem.h"
|
||||
#include "config_util.h"
|
||||
#include "config_express.h"
|
||||
#include "virtualFileSystem.h"
|
||||
#include "dcast.h"
|
||||
|
||||
TypeHandle LoaderFileTypeBam::_type_handle;
|
||||
|
@ -21,8 +21,8 @@
|
||||
#include "pnmFileType.h"
|
||||
#include "pnmReader.h"
|
||||
#include "config_pnmimage.h"
|
||||
#include "config_express.h"
|
||||
#include "virtualFileSystem.h"
|
||||
#include "config_util.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: PNMImageHeader::read_header
|
||||
|
@ -88,9 +88,3 @@ get_sound_path() {
|
||||
static DSearchPath *sound_path = NULL;
|
||||
return get_config_path("sound-path", sound_path);
|
||||
}
|
||||
|
||||
// Set this true to use the VirtualFileSystem mechanism for loading
|
||||
// models, etc. Since the VirtualFileSystem maps to the same as the
|
||||
// actual file system by default, there is probably no reason to set
|
||||
// this false, except for testing or if you mistrust the new code.
|
||||
const bool use_vfs = config_util.GetBool("use-vfs", true);
|
||||
|
@ -19,9 +19,9 @@
|
||||
#ifndef __CONFIG_UTIL_H__
|
||||
#define __CONFIG_UTIL_H__
|
||||
|
||||
#include <pandabase.h>
|
||||
#include <notifyCategoryProxy.h>
|
||||
#include <dconfig.h>
|
||||
#include "pandabase.h"
|
||||
#include "notifyCategoryProxy.h"
|
||||
#include "dconfig.h"
|
||||
|
||||
class DSearchPath;
|
||||
|
||||
@ -46,6 +46,4 @@ EXPCL_PANDA DSearchPath &get_texture_path();
|
||||
EXPCL_PANDA DSearchPath &get_sound_path();
|
||||
END_PUBLISH
|
||||
|
||||
extern EXPCL_PANDA const bool use_vfs;
|
||||
|
||||
#endif /* __CONFIG_UTIL_H__ */
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "datagramIterator.h"
|
||||
#include "profileTimer.h"
|
||||
#include "config_util.h"
|
||||
#include "config_express.h"
|
||||
#include "virtualFileSystem.h"
|
||||
|
||||
#include "datagramInputFile.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user