2015-05-19 21:54:34 +00:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
/*
|
|
|
|
Copyright (C) 2007 Jonathon Fowler <jf@jonof.id.au>
|
|
|
|
|
|
|
|
This file is part of JFShadowWarrior
|
|
|
|
|
|
|
|
Shadow Warrior 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.
|
|
|
|
|
|
|
|
This program 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 this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef grpscan_h__
|
|
|
|
#define grpscan_h__
|
|
|
|
|
2019-10-09 16:09:05 +00:00
|
|
|
BEGIN_SW_NS
|
|
|
|
|
2015-05-19 21:54:34 +00:00
|
|
|
// List of internally-known GRP files
|
|
|
|
#define numgrpfiles 3
|
2019-04-08 06:27:55 +00:00
|
|
|
struct internalgrpfile
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
|
|
|
const char *name;
|
2019-04-08 06:27:35 +00:00
|
|
|
unsigned int crcval;
|
2015-05-19 21:54:34 +00:00
|
|
|
int size;
|
2019-04-08 06:27:55 +00:00
|
|
|
};
|
|
|
|
struct grpfile
|
|
|
|
{
|
|
|
|
char *name;
|
|
|
|
unsigned int crcval;
|
|
|
|
int size;
|
2015-05-19 21:54:34 +00:00
|
|
|
struct grpfile *next;
|
2019-04-08 06:26:50 +00:00
|
|
|
};
|
|
|
|
|
2019-04-08 06:27:55 +00:00
|
|
|
extern internalgrpfile grpfiles[numgrpfiles];
|
|
|
|
extern grpfile *foundgrps;
|
2015-05-19 21:54:34 +00:00
|
|
|
|
|
|
|
int ScanGroups(void);
|
|
|
|
void FreeGroups(void);
|
|
|
|
|
2019-10-09 16:09:05 +00:00
|
|
|
END_SW_NS
|
|
|
|
|
2015-05-19 21:54:34 +00:00
|
|
|
#endif
|