]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/pluginentities.cpp
more eol-style
[xonotic/netradiant.git] / radiant / pluginentities.cpp
index 563fa85ad8a9b145d0138ee34c48d9a422da7bbc..153a61fb61ed45403b2c667caa2c935eee815fe1 100644 (file)
@@ -1,74 +1,74 @@
-/*\r
-Copyright (C) 1999-2007 id Software, Inc. and contributors.\r
-For a list of contributors, see the accompanying CONTRIBUTORS file.\r
-\r
-This file is part of GtkRadiant.\r
-\r
-GtkRadiant is free software; you can redistribute it and/or modify\r
-it under the terms of the GNU General Public License as published by\r
-the Free Software Foundation; either version 2 of the License, or\r
-(at your option) any later version.\r
-\r
-GtkRadiant is distributed in the hope that it will be useful,\r
-but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-GNU General Public License for more details.\r
-\r
-You should have received a copy of the GNU General Public License\r
-along with GtkRadiant; if not, write to the Free Software\r
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA\r
-*/\r
-\r
-//-----------------------------------------------------------------------------\r
-//\r
-// DESCRIPTION:\r
-// implementation of IPluginEntities specific interface\r
-// \r
-\r
-#ifdef USEPLUGINENTITIES\r
-\r
-#include "stdafx.h"\r
-#if defined (__linux__) || defined (__APPLE__)\r
-#include <dirent.h>\r
-#endif\r
-//#include "qe3.h"\r
-\r
-int QERApp_EClassScanDir (char *path, void* hPlug)\r
-{\r
-  char         temp[NAME_MAX];\r
-  char         filebase[NAME_MAX];\r
-  char         filename[NAME_MAX];\r
-  char         *s;\r
-  eclass_t      *e;\r
-  DIR           *dir;\r
-  struct dirent *dirlist;\r
-\r
-  QE_ConvertDOSToUnixName( temp, path );\r
-  strcpy (filebase, path);\r
-  s = filebase + strlen(filebase)-1;\r
-  while (*s != '\\' && *s != '/' && s!=filebase)\r
-    s--;\r
-  *s = 0;\r
-\r
-  dir = opendir (path);\r
-  if (dir != NULL)\r
-  {\r
-    while ((dirlist = readdir (dir)) != NULL)\r
-    {                  \r
-      sprintf (filename, "%s/%s", filebase, dirlist->d_name);\r
-      Eclass_ScanFile (filename);\r
-\r
-      if (eclass_found)\r
-      {\r
-        e = eclass_e;\r
-        e->modelpath = strdup(dirlist->d_name);\r
-        e->nShowFlags |= ECLASS_PLUGINENTITY;\r
-        e->hPlug = hPlug;\r
-      }\r
-    }\r
-    closedir (dir);\r
-  }\r
-  return 0;\r
-}\r
-\r
-#endif // USEPLUGINENTITIES\r
+/*
+Copyright (C) 1999-2007 id Software, Inc. and contributors.
+For a list of contributors, see the accompanying CONTRIBUTORS file.
+
+This file is part of GtkRadiant.
+
+GtkRadiant is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+GtkRadiant is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GtkRadiant; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+*/
+
+//-----------------------------------------------------------------------------
+//
+// DESCRIPTION:
+// implementation of IPluginEntities specific interface
+// 
+
+#ifdef USEPLUGINENTITIES
+
+#include "stdafx.h"
+#if defined (__linux__) || defined (__APPLE__)
+#include <dirent.h>
+#endif
+//#include "qe3.h"
+
+int QERApp_EClassScanDir (char *path, void* hPlug)
+{
+  char         temp[NAME_MAX];
+  char         filebase[NAME_MAX];
+  char         filename[NAME_MAX];
+  char         *s;
+  eclass_t      *e;
+  DIR           *dir;
+  struct dirent *dirlist;
+
+  QE_ConvertDOSToUnixName( temp, path );
+  strcpy (filebase, path);
+  s = filebase + strlen(filebase)-1;
+  while (*s != '\\' && *s != '/' && s!=filebase)
+    s--;
+  *s = 0;
+
+  dir = opendir (path);
+  if (dir != NULL)
+  {
+    while ((dirlist = readdir (dir)) != NULL)
+    {                  
+      sprintf (filename, "%s/%s", filebase, dirlist->d_name);
+      Eclass_ScanFile (filename);
+
+      if (eclass_found)
+      {
+        e = eclass_e;
+        e->modelpath = strdup(dirlist->d_name);
+        e->nShowFlags |= ECLASS_PLUGINENTITY;
+        e->hPlug = hPlug;
+      }
+    }
+    closedir (dir);
+  }
+  return 0;
+}
+
+#endif // USEPLUGINENTITIES