Browse Source

wantOtpServer

Dave Schuyler 21 years ago
parent
commit
19e6c415b5
2 changed files with 3 additions and 0 deletions
  1. 2 0
      direct/src/distributed/MsgTypes.py
  2. 1 0
      direct/src/showbase/ShowBase.py

+ 2 - 0
direct/src/distributed/MsgTypes.py

@@ -1,5 +1,7 @@
 """MsgTypes module: contains distributed object message types"""
 """MsgTypes module: contains distributed object message types"""
 
 
+OTP_SERVER_ROOT_DO_ID =         4007
+
 # 2 new params: passwd, char bool 0/1 1 = new account
 # 2 new params: passwd, char bool 0/1 1 = new account
 # 2 new return values: 129 = not found, 12 = bad passwd, 
 # 2 new return values: 129 = not found, 12 = bad passwd, 
 CLIENT_LOGIN =                                1
 CLIENT_LOGIN =                                1

+ 1 - 0
direct/src/showbase/ShowBase.py

@@ -265,6 +265,7 @@ class ShowBase(DirectObject.DirectObject):
         __builtins__["cpMgr"] = ConfigPageManager.getGlobalPtr()
         __builtins__["cpMgr"] = ConfigPageManager.getGlobalPtr()
         __builtins__["cvMgr"] = ConfigVariableManager.getGlobalPtr()
         __builtins__["cvMgr"] = ConfigVariableManager.getGlobalPtr()
         __builtins__["__dev__"] = base.config.GetBool('want-dev', 0)
         __builtins__["__dev__"] = base.config.GetBool('want-dev', 0)
+        __builtins__["wantOtpServer"] = base.config.GetBool('want-otp-server', 0)
         if __debug__:
         if __debug__:
             __builtins__["deltaProfiler"] = DeltaProfiler.DeltaProfiler("ShowBase")
             __builtins__["deltaProfiler"] = DeltaProfiler.DeltaProfiler("ShowBase")
         __builtins__["onScreenDebug"] = OnScreenDebug.OnScreenDebug()
         __builtins__["onScreenDebug"] = OnScreenDebug.OnScreenDebug()