]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/bobtoolz/lists.cpp
refactored plugin api; refactored callback library; added signals library
[xonotic/netradiant.git] / contrib / bobtoolz / lists.cpp
index b8b1dd44754381dca87474d354b34e800ad6a283..faacbb77a520604dd4f1496212113354292071e4 100644 (file)
@@ -17,19 +17,17 @@ License along with this library; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
-#include "StdAfx.h"
+#include "lists.h"
 
 #ifdef WIN32
 #pragma warning(disable : 4786)
 #endif
 
-#include "gtkr_list.h"
-#include "str.h"
+#include <glib/glist.h>
 
-#include "lists.h"
 #include "misc.h"
 
-bool LoadExclusionList(char* filename, list<Str>* exclusionList)
+bool LoadExclusionList(char* filename, std::list<Str>* exclusionList)
 {
        FILE* eFile = fopen(filename, "r");
        if(eFile)
@@ -52,7 +50,7 @@ bool LoadExclusionList(char* filename, list<Str>* exclusionList)
                return TRUE;
        }
 
-       Sys_ERROR("Failed To Load Exclusion List: %s\n", filename);
+       globalErrorStream() << "Failed To Load Exclusion List: " << filename << "\n";
        return FALSE;
 }