@@ -700,117 +700,10 @@ abstract_class CBaseFileSystem : public CTier1AppSystem< IFileSystem >
700700 // Unregister a CMemoryFileBacking; must balance with RegisterMemoryFile.
701701 virtual void UnregisterMemoryFile ( CMemoryFileBacking *pFile );
702702
703- // ------------------------------------
704- // Synchronous path for file operations
705- // ------------------------------------
706- class CPathIDInfo
707- {
708- public:
709- CPathIDInfo () : m_bByRequestOnly(), m_pDebugPathID() {}
710- const CUtlSymbol& GetPathID () const ;
711- const char * GetPathIDString () const ;
712- void SetPathID ( CUtlSymbol id );
713-
714- public:
715- // See MarkPathIDByRequestOnly.
716- bool m_bByRequestOnly;
717-
718- public:
719- CUtlSymbol m_PathID;
720- const char *m_pDebugPathID;
721- };
722-
723703 // //////////////////////////////////////////////
724704 // IMPLEMENTATION DETAILS FOR CBaseFileSystem //
725705 // //////////////////////////////////////////////
726706
727- class CSearchPath
728- {
729- public:
730- CSearchPath ( void );
731- ~CSearchPath ( void );
732-
733- const char * GetPathString () const ;
734- const char * GetDebugString () const ;
735-
736- // Path ID ("game", "mod", "gamebin") accessors.
737- const CUtlSymbol& GetPathID () const ;
738- const char * GetPathIDString () const ;
739-
740- // Search path (c:\hl2\hl2) accessors.
741- void SetPath ( CUtlSymbol id );
742- const CUtlSymbol& GetPath () const ;
743-
744- void SetPackFile (CPackFile *pPackFile) { m_pPackFile = pPackFile; }
745- CPackFile *GetPackFile () const { return m_pPackFile; }
746-
747- #ifdef SUPPORT_PACKED_STORE
748- void SetPackedStore ( CPackedStoreRefCount *pPackedStore ) { /* m_pPackedStore = pPackedStore;*/ }
749- #endif
750- CPackedStoreRefCount *GetPackedStore () const { return m_pPackedStore; }
751-
752- bool IsMapPath () const ;
753-
754- int m_storeId;
755-
756- // Used to track if its search
757- CPathIDInfo *m_pPathIDInfo;
758-
759- bool m_bIsRemotePath;
760-
761- bool m_bIsTrustedForPureServer;
762-
763- private:
764- CUtlSymbol m_Path;
765- const char *m_pDebugPath;
766- CPackFile *m_pPackFile;
767- CPackedStoreRefCount *m_pPackedStore;
768- };
769-
770- class CSearchPathsVisits
771- {
772- public:
773- void Reset ()
774- {
775- m_Visits.RemoveAll ();
776- }
777-
778- bool MarkVisit ( const CSearchPath &searchPath )
779- {
780- if ( m_Visits.Find ( searchPath.m_storeId ) == m_Visits.InvalidIndex () )
781- {
782- MEM_ALLOC_CREDIT ();
783- m_Visits.AddToTail ( searchPath.m_storeId );
784- return false ;
785- }
786- return true ;
787- }
788-
789- private:
790- CUtlVector<int > m_Visits; // This is a copy of IDs for the search paths we've visited, so
791- };
792-
793- class CSearchPathsIterator
794- {
795- public:
796- CSearchPath *GetFirst ();
797- CSearchPath *GetNext ();
798-
799- private:
800- CSearchPathsIterator ( const CSearchPathsIterator & );
801- void operator =(const CSearchPathsIterator &);
802- void CopySearchPaths ( const CUtlVector<CSearchPath> &searchPaths );
803-
804- int m_iCurrent;
805- CUtlSymbol m_pathID;
806- CUtlVector<CSearchPath> m_SearchPaths;
807- CSearchPathsVisits m_visits;
808- CSearchPath m_EmptySearchPath;
809- CPathIDInfo m_EmptyPathIDInfo;
810- PathTypeFilter_t m_PathTypeFilter;
811- char m_Filename[MAX_PATH]; // set for relative names only
812- };
813-
814707 friend class CSearchPathsIterator ;
815708
816709 struct FindData_t
0 commit comments