shithub: choc

Download patch

ref: 9bc44c2cc54b5aa3073c7c62d99f6cc2df71c0ad
parent: 43df3678ea7285c3997dc37b0ef586c9ffbf4908
author: Turo Lamminen <turotl@gmail.com>
date: Sat May 5 11:02:38 EDT 2018

Make M_SetConfigDir parameter const

--- a/src/m_config.c
+++ b/src/m_config.c
@@ -2185,7 +2185,7 @@
 // files are stored - default.cfg, chocolate-doom.cfg, savegames, etc.
 //
 
-void M_SetConfigDir(char *dir)
+void M_SetConfigDir(const char *dir)
 {
     // Use the directory that was passed, or find the default.
 
--- a/src/m_config.h
+++ b/src/m_config.h
@@ -25,7 +25,7 @@
 void M_LoadDefaults(void);
 void M_SaveDefaults(void);
 void M_SaveDefaultsAlternate(char *main, char *extra);
-void M_SetConfigDir(char *dir);
+void M_SetConfigDir(const char *dir);
 void M_BindIntVariable(char *name, int *variable);
 void M_BindFloatVariable(char *name, float *variable);
 void M_BindStringVariable(char *name, char **variable);