Commits

Jake Todd committed fd32d4e

Add bspinfo

  • Participants
  • Parent commits 5e0470f

Comments (0)

Files changed (2)

File bspinfo/bspinfo.c

+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <errno.h>
+#include <ctype.h>
+#include <time.h>
+#include <stdarg.h>
+#include "../common/cmdlib.h"
+#include <math.h>
+#include "../common/mathlib.h"
+#include "../common/bspfile.h"
+
+void
+main(int argc, char **argv)
+{
+	int i;
+	char source[1024];
+
+	if(argc == 1)
+		Error("usage: bspinfo bspfile[s]");
+
+	for(i = 1; i < argc; i++) {
+		strcpy(source, argv[i]);
+		DefaultExtension(source, ".bsp");
+		printf("%s\n", source);
+
+		LoadBSPFile(source);
+		PrintBSPFileSizes();
+	}
+}

File qbsp/qbsp

Binary file removed.