1 //------------------------------------------------------------------------
2 //  TEXT Strings
3 //------------------------------------------------------------------------
4 //
5 //  DEH_EDGE  Copyright (C) 2004-2005  The EDGE Team
6 //
7 //  This program is under the GNU General Public License.
8 //  It comes WITHOUT ANY WARRANTY of any kind.
9 //  See COPYING.txt for the full details.
10 //
11 //------------------------------------------------------------------------
12 
13 #ifndef __TEXT_HDR__
14 #define __TEXT_HDR__
15 
16 namespace Deh_Edge
17 {
18 
19 typedef struct
20 {
21 	const char *orig_name;
22 	char *new_name;
23 }
24 spritename_t;
25 
26 namespace TextStr
27 {
28 	void Startup(void);
29 
30 	// these return true if the string was found.
31 	bool ReplaceString(const char *before, const char *after);
32 	bool ReplaceSprite(const char *before, const char *after);
33 	bool ReplaceCheat(const char *deh_name, const char *str);
34 	bool ReplaceBexString(const char *bex_name, const char *after);
35 	void ReplaceBinaryString(int v166_index, const char *str);
36 
37 	void AlterCheat(const char * new_val);
38 	void AlterBexSprite(const char * new_val);
39 
40 	const char *GetSprite(int spr_num);
41 
42 	void SpriteDependencies(void);
43 
44 	void ConvertLDF(void);
45 }
46 
47 }  // Deh_Edge
48 
49 #endif /* __TEXT_HDR__ */
50