From 19e6c415b5cf7fbd257b7bb4f2bf00dc355f77f3 Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Tue, 28 Dec 2004 05:55:52 +0000 Subject: [PATCH] wantOtpServer --- direct/src/distributed/MsgTypes.py | 2 ++ direct/src/showbase/ShowBase.py | 1 + 2 files changed, 3 insertions(+) diff --git a/direct/src/distributed/MsgTypes.py b/direct/src/distributed/MsgTypes.py index 1d3b5ae006..decab4955c 100644 --- a/direct/src/distributed/MsgTypes.py +++ b/direct/src/distributed/MsgTypes.py @@ -1,5 +1,7 @@ """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 return values: 129 = not found, 12 = bad passwd, CLIENT_LOGIN = 1 diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index b6b1de9cdc..5d9634f13b 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -265,6 +265,7 @@ class ShowBase(DirectObject.DirectObject): __builtins__["cpMgr"] = ConfigPageManager.getGlobalPtr() __builtins__["cvMgr"] = ConfigVariableManager.getGlobalPtr() __builtins__["__dev__"] = base.config.GetBool('want-dev', 0) + __builtins__["wantOtpServer"] = base.config.GetBool('want-otp-server', 0) if __debug__: __builtins__["deltaProfiler"] = DeltaProfiler.DeltaProfiler("ShowBase") __builtins__["onScreenDebug"] = OnScreenDebug.OnScreenDebug()