shithub: choc

Download patch

ref: 19bae1157cf0de3461b05d87c1bf2a25f376d51d
parent: 5508740367ca91d4f266803d70d9b8fbe86f5cba
author: Turo Lamminen <[email protected]>
date: Fri Mar 2 18:23:30 EST 2018

Make M_MakeDirectory parameter const

--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -52,7 +52,7 @@
 // Create a directory
 //
 
-void M_MakeDirectory(char *path)
+void M_MakeDirectory(const char *path)
 {
 #ifdef _WIN32
     mkdir(path);
--- a/src/m_misc.h
+++ b/src/m_misc.h
@@ -27,7 +27,7 @@
 
 boolean M_WriteFile(const char *name, void *source, int length);
 int M_ReadFile(const char *name, byte **buffer);
-void M_MakeDirectory(char *dir);
+void M_MakeDirectory(const char *dir);
 char *M_TempFile(char *s);
 boolean M_FileExists(char *file);
 char *M_FileCaseExists(char *file);