Browse Source

*** empty log message ***

David Rose 25 years ago
parent
commit
4d1a141e10
2 changed files with 12 additions and 0 deletions
  1. 11 0
      dtool/src/dtoolutil/dSearchPath.cxx
  2. 1 0
      dtool/src/dtoolutil/dSearchPath.h

+ 11 - 0
dtool/src/dtoolutil/dSearchPath.cxx

@@ -177,6 +177,17 @@ append_path(const string &path, const string &delimiters) {
   }
   }
 }
 }
 
 
+////////////////////////////////////////////////////////////////////
+//     Function: DSearchPath::is_empty
+//       Access: Public
+//  Description: Returns true if the search list is empty, false
+//               otherwise.
+////////////////////////////////////////////////////////////////////
+bool DSearchPath::
+is_empty() const {
+  return _directories.empty();
+}
+
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: DSearchPath::get_num_directories
 //     Function: DSearchPath::get_num_directories
 //       Access: Public
 //       Access: Public

+ 1 - 0
dtool/src/dtoolutil/dSearchPath.h

@@ -53,6 +53,7 @@ PUBLISHED:
   void append_path(const string &path,
   void append_path(const string &path,
 		   const string &delimiters = ": \t\n");
 		   const string &delimiters = ": \t\n");
 
 
+  bool is_empty() const;
   int get_num_directories() const;
   int get_num_directories() const;
   Filename get_directory(int n) const;
   Filename get_directory(int n) const;