| 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 ARGS_H |
| 20 | #define ARGS_Hcxx . . $ `Descent3/args.h:20:9`! |
| 21 | |
| 22 | #define MAX_ARGScxx . . $ `Descent3/args.h:22:9`! 30 |
| 23 | #define MAX_CHARS_PER_ARGcxx . . $ `Descent3/args.h:23:9`! 100 |
| 24 | extern char GameArgscxx . . $ GameArgs.[MAX_ARGScxx . . $ `Descent3/args.h:22:9`!][MAX_CHARS_PER_ARGcxx . . $ `Descent3/args.h:23:9`!]; |
| 25 | |
| 26 | // Gathers all arguments |
| 27 | void GatherArgscxx . . $ GatherArgs(85c52e162fed56f9).(const char *str); |
| 28 | void GatherArgscxx . . $ GatherArgs(3ed91490e421178f).(char **argv); |
| 29 | |
| 30 | // Returns index of argument sought, or 0 if not found |
| 31 | int FindArgcxx . . $ FindArg(5c4306d8553b3696).(const char *which); |
| 32 | int FindArgCharcxx . . $ FindArgChar(7c0a79fa02e3e627).(const char *which, char singleCharArg); |
| 33 | |
| 34 | const char *GetArgcxx . . $ GetArg(f7ae7e56280f18ae).(int index); |
| 35 | |
| 36 | #endif |