remove old api calls

This commit is contained in:
David Rose 2009-06-16 03:46:55 +00:00
parent 4388d5d7f8
commit 9e7337557a
5 changed files with 17 additions and 11 deletions

View File

@ -1,4 +1,4 @@
from pandac.PandaModules import ConfigConfigureGetConfigConfigShowbase as config
from pandac.PandaModules import getConfigShowbase
from direct.directnotify.DirectNotifyGlobal import directNotify
from direct.showbase.PythonUtil import fastRepr
from exceptions import Exception
@ -7,6 +7,7 @@ import types
import traceback
notify = directNotify.newCategory("ExceptionVarDump")
config = getConfigShowbase()
reentry = 0

View File

@ -3746,7 +3746,8 @@ class HierarchyException(Exception):
# __dev__ is not defined at import time, call this after it's defined
def recordFunctorCreationStacks():
global Functor
from pandac.PandaModules import ConfigConfigureGetConfigConfigShowbase as config
from pandac.PandaModules import getConfigShowbase
config = getConfigShowbase()
if __dev__ and config.GetBool('record-functor-creation-stacks', 1):
if not hasattr(Functor, '_functorCreationStacksRecorded'):
Functor = recordCreationStackStr(Functor)

View File

@ -11,7 +11,7 @@ from pandac.PandaModules import *
# This needs to be available early for DirectGUI imports
import __builtin__
__builtin__.config = ConfigConfigureGetConfigConfigShowbase
__builtin__.config = getConfigShowbase()
from direct.directnotify.DirectNotifyGlobal import *
from MessengerGlobal import *
@ -68,7 +68,6 @@ class ShowBase(DirectObject.DirectObject):
self.debugRunningMultiplier = 4
# Get the dconfig object
#self.config = ConfigConfigureGetConfigConfigShowbase
self.config = config
# Setup wantVerifyPdb as soon as reasonable:
Verify.wantVerifyPdb = self.config.GetBool('want-verify-pdb', 0)

View File

@ -50,12 +50,16 @@
Configure(config_flt);
NotifyCategoryDef(flt, "");
// Set this true to trigger an assertion failure (and core dump)
// immediately when an error is detected on reading or writing a flt
// file. This is primarily useful for debugging the flt reader
// itself, to generate a stack trace to determine precisely at what
// point a flt file failed.
const bool flt_error_abort = config_flt.GetBool("flt-error-abort", false);
ConfigVariableBool flt_error_abort
("flt-error-abort", false,
PRC_DESC("Set this true to trigger an assertion failure (and core dump) "
"immediately when an error is detected on reading or writing a flt "
"file. This is primarily useful for debugging the flt reader itself, "
"to generate a stack trace to determine precisely at what point a flt "
"file failed."));
ConfigureFn(config_flt) {
init_libflt();

View File

@ -18,10 +18,11 @@
#include "pandatoolbase.h"
#include "notifyCategoryProxy.h"
#include "configVariableBool.h"
NotifyCategoryDeclNoExport(flt);
extern const bool flt_error_abort;
extern ConfigVariableBool flt_error_abort;
extern void init_libflt();