Skip to content

Commit

Permalink
restore utils
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Nov 9, 2024
1 parent 0a7ef14 commit 1e31866
Show file tree
Hide file tree
Showing 182 changed files with 34,588 additions and 0 deletions.
48 changes: 48 additions & 0 deletions SourceCode/utils/bspinfo/bspinfo.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
****/

#include "cmdlib.h"
#include "mathlib.h"
#include "bsplib.h"

void main (int argc, char **argv)
{
int i;
char source[1024];
int size;
FILE *f;

printf( "bspinfo.exe v2.1 (%s)\n", __DATE__ );
printf ("---- bspinfo ----\n" );


if (argc == 1)
Error ("usage: bspinfo bspfile [bspfiles]");

for (i=1 ; i<argc ; i++)
{
printf ("---------------------\n");
strcpy (source, argv[i]);
DefaultExtension (source, ".bsp");
f = fopen (source, "rb");
if (f)
{
size = filelength (f);
fclose (f);
}
else
size = 0;
printf ("%s: %i\n", source, size);

LoadBSPFile (source);
PrintBSPFileSizes ();
printf ("---------------------\n");
}
}
124 changes: 124 additions & 0 deletions SourceCode/utils/bspinfo/bspinfo.dsp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions SourceCode/utils/bspinfo/bspinfo.dsw
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!

###############################################################################

Project: "bspinfo"=.\bspinfo.dsp - Package Owner=<4>

Package=<5>
{{{
begin source code control
"$/SDKSrc/Tools/utils/bspinfo", HUGBAAAA
.
end source code control
}}}

Package=<4>
{{{
}}}

###############################################################################

Global:

Package=<5>
{{{
begin source code control
"$/SDKSrc/Tools/utils/bspinfo", HUGBAAAA
.
end source code control
}}}

Package=<3>
{{{
}}}

###############################################################################

Loading

0 comments on commit 1e31866

Please sign in to comment.