XenevaOS
Loading...
Searching...
No Matches
m_config.h
Go to the documentation of this file.
1//
2// Copyright(C) 1993-1996 Id Software, Inc.
3// Copyright(C) 2005-2014 Simon Howard
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 2
8// of the License, or (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// DESCRIPTION:
16// Configuration file interface.
17//
18
19
20#ifndef __M_CONFIG__
21#define __M_CONFIG__
22
23#include "doomtype.h"
24
25void M_LoadDefaults(void);
26void M_SaveDefaults(void);
27void M_SaveDefaultsAlternate(char *main, char *extra);
28void M_SetConfigDir(char *dir);
29void M_BindVariable(char *name, void *variable);
30boolean M_SetVariable(char *name, char *value);
31int M_GetIntVariable(char *name);
32const char *M_GetStrVariable(char *name);
33float M_GetFloatVariable(char *name);
34void M_SetConfigFilenames(char *main_config, char *extra_config);
35char *M_GetSaveGameDir(char *iwadname);
36
37extern char *configdir;
38
39#endif
int main()
Definition main.cpp:117
struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs const char * name
Definition drm_crtc.h:1242
void M_SetConfigFilenames(char *main_config, char *extra_config)
Definition m_config.c:1836
char * configdir
Definition m_config.c:45
void M_BindVariable(char *name, void *variable)
Definition m_config.c:1964
void M_SetConfigDir(char *dir)
Definition m_config.c:2059
void M_SaveDefaults(void)
Definition m_config.c:1846
const char * M_GetStrVariable(char *name)
Definition m_config.c:2010
void M_SaveDefaultsAlternate(char *main, char *extra)
Definition m_config.c:1856
void M_LoadDefaults(void)
Definition m_config.c:1881
char * M_GetSaveGameDir(char *iwadname)
Definition m_config.c:2087
boolean M_SetVariable(char *name, char *value)
Definition m_config.c:1977
int M_GetIntVariable(char *name)
Definition m_config.c:1995
float M_GetFloatVariable(char *name)
Definition m_config.c:2025