Debian Codegraph @

Descent3/gamefile.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #ifndef GAMEFILE_H
20 #define GAMEFILE_Hcxx . . $ `Descent3/gamefile.h:20:9`!
21
22 #include "pstypes.h"cxx . . $ `<file>/lib/pstypes.h`/
23 #include "manage.h"cxx . . $ `<file>/lib/manage.h`/
24
25 #define MAX_GAMEFILEScxx . . $ `Descent3/gamefile.h:25:9`! 1500
26
27 struct gamefilecxx . . $ gamefile# {
28 char namecxx . . $ gamefile#name.[PAGENAME_LENcxx . . $ `lib/manage_external.h:49:9`!];
29 char dir_namecxx . . $ gamefile#dir_name.[PAGENAME_LENcxx . . $ `lib/manage_external.h:49:9`!];
30 uint8_tcxx . . $ uint8_t# usedcxx . . $ gamefile#used.;
31 };
32
33 extern int Num_gamefilescxx . . $ Num_gamefiles.;
34 extern gamefilecxx . . $ gamefile# Gamefilescxx . . $ Gamefiles.[MAX_GAMEFILEScxx . . $ `Descent3/gamefile.h:25:9`!];
35
36 // Sets all gamefiles to unused
37 void InitGamefilescxx . . $ InitGamefiles(49f6e7a06ebc5aa8).();
38
39 // Allocs a gamefile for use, returns -1 if error, else index on success
40 int AllocGamefilecxx . . $ AllocGamefile(b126dc7c1de90089).();
41
42 // Frees gamefile index n
43 void FreeGamefilecxx . . $ FreeGamefile(d4f767463ce0a6b3).(int n);
44
45 // Gets next gamefile from n that has actually been alloced
46 int GetNextGamefilecxx . . $ GetNextGamefile(7864480464b09eea).(int n);
47
48 // Gets previous gamefile from n that has actually been alloced
49 int GetPrevGamefilecxx . . $ GetPrevGamefile(7864480464b09eea).(int n);
50
51 // Searches thru all gamefile for a specific name, returns -1 if not found
52 // or index of gamefile with name
53 int FindGamefileNamecxx . . $ FindGamefileName(1ef8e6ec083aabb9).(char *name);
54
55 #endif