コード例 #1
0
        private static unsafe void OnContextInit(CSteamApiContext *c_contextPointer)
        {
            c_contextPointer->Clear();

            if (GetHSteamPipe() != 0)
            {
                c_contextPointer->Init();
            }
        }
コード例 #2
0
        private static unsafe CSteamApiContext *GetSteamApiContext()
        {
            if (m_steamApiContext != null)
            {
                return(m_steamApiContext);
            }

            var a_callbackCounterAndContext = CallbackCounterAndContext();

            m_steamApiContext = ContextInit(a_callbackCounterAndContext);

            return(m_steamApiContext);
        }