shithub: choc

Download patch

ref: dfc3ae43cb29839ace019bf8a0ea90d13302f179
parent: a3d1f5dcd60c670f8079081cacb8843b7a03e326
author: Turo Lamminen <turotl@gmail.com>
date: Sat May 26 11:47:42 EDT 2018

config: Make M_SetConfigFilenames extra_config parameter const

--- a/src/m_config.c
+++ b/src/m_config.c
@@ -1929,7 +1929,7 @@
 
 // Set the default filenames to use for configuration files.
 
-void M_SetConfigFilenames(const char *main_config, char *extra_config)
+void M_SetConfigFilenames(const char *main_config, const char *extra_config)
 {
     default_main_config = main_config;
     default_extra_config = extra_config;
--- a/src/m_config.h
+++ b/src/m_config.h
@@ -33,7 +33,7 @@
 int M_GetIntVariable(char *name);
 const char *M_GetStringVariable(char *name);
 float M_GetFloatVariable(char *name);
-void M_SetConfigFilenames(const char *main_config, char *extra_config);
+void M_SetConfigFilenames(const char *main_config, const char *extra_config);
 char *M_GetSaveGameDir(const char *iwadname);
 
 extern const char *configdir;