mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
remove old api calls
This commit is contained in:
parent
4388d5d7f8
commit
9e7337557a
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user