mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -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.directnotify.DirectNotifyGlobal import directNotify
|
||||||
from direct.showbase.PythonUtil import fastRepr
|
from direct.showbase.PythonUtil import fastRepr
|
||||||
from exceptions import Exception
|
from exceptions import Exception
|
||||||
@ -7,6 +7,7 @@ import types
|
|||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
notify = directNotify.newCategory("ExceptionVarDump")
|
notify = directNotify.newCategory("ExceptionVarDump")
|
||||||
|
config = getConfigShowbase()
|
||||||
|
|
||||||
reentry = 0
|
reentry = 0
|
||||||
|
|
||||||
|
@ -3746,7 +3746,8 @@ class HierarchyException(Exception):
|
|||||||
# __dev__ is not defined at import time, call this after it's defined
|
# __dev__ is not defined at import time, call this after it's defined
|
||||||
def recordFunctorCreationStacks():
|
def recordFunctorCreationStacks():
|
||||||
global Functor
|
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 __dev__ and config.GetBool('record-functor-creation-stacks', 1):
|
||||||
if not hasattr(Functor, '_functorCreationStacksRecorded'):
|
if not hasattr(Functor, '_functorCreationStacksRecorded'):
|
||||||
Functor = recordCreationStackStr(Functor)
|
Functor = recordCreationStackStr(Functor)
|
||||||
|
@ -11,7 +11,7 @@ from pandac.PandaModules import *
|
|||||||
|
|
||||||
# This needs to be available early for DirectGUI imports
|
# This needs to be available early for DirectGUI imports
|
||||||
import __builtin__
|
import __builtin__
|
||||||
__builtin__.config = ConfigConfigureGetConfigConfigShowbase
|
__builtin__.config = getConfigShowbase()
|
||||||
|
|
||||||
from direct.directnotify.DirectNotifyGlobal import *
|
from direct.directnotify.DirectNotifyGlobal import *
|
||||||
from MessengerGlobal import *
|
from MessengerGlobal import *
|
||||||
@ -68,7 +68,6 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
self.debugRunningMultiplier = 4
|
self.debugRunningMultiplier = 4
|
||||||
|
|
||||||
# Get the dconfig object
|
# Get the dconfig object
|
||||||
#self.config = ConfigConfigureGetConfigConfigShowbase
|
|
||||||
self.config = config
|
self.config = config
|
||||||
# Setup wantVerifyPdb as soon as reasonable:
|
# Setup wantVerifyPdb as soon as reasonable:
|
||||||
Verify.wantVerifyPdb = self.config.GetBool('want-verify-pdb', 0)
|
Verify.wantVerifyPdb = self.config.GetBool('want-verify-pdb', 0)
|
||||||
|
@ -50,12 +50,16 @@
|
|||||||
Configure(config_flt);
|
Configure(config_flt);
|
||||||
NotifyCategoryDef(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
|
ConfigVariableBool flt_error_abort
|
||||||
// file. This is primarily useful for debugging the flt reader
|
("flt-error-abort", false,
|
||||||
// itself, to generate a stack trace to determine precisely at what
|
PRC_DESC("Set this true to trigger an assertion failure (and core dump) "
|
||||||
// point a flt file failed.
|
"immediately when an error is detected on reading or writing a flt "
|
||||||
const bool flt_error_abort = config_flt.GetBool("flt-error-abort", false);
|
"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) {
|
ConfigureFn(config_flt) {
|
||||||
init_libflt();
|
init_libflt();
|
||||||
|
@ -18,10 +18,11 @@
|
|||||||
#include "pandatoolbase.h"
|
#include "pandatoolbase.h"
|
||||||
|
|
||||||
#include "notifyCategoryProxy.h"
|
#include "notifyCategoryProxy.h"
|
||||||
|
#include "configVariableBool.h"
|
||||||
|
|
||||||
NotifyCategoryDeclNoExport(flt);
|
NotifyCategoryDeclNoExport(flt);
|
||||||
|
|
||||||
extern const bool flt_error_abort;
|
extern ConfigVariableBool flt_error_abort;
|
||||||
|
|
||||||
extern void init_libflt();
|
extern void init_libflt();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user