shithub: choc

Download patch

ref: 2efb4fb87b94345456bb2f7d19c3f5fe59316511
parent: 2ac504e292204aac575e1e10cd66745ec06a7254
author: Turo Lamminen <turotl@gmail.com>
date: Fri Mar 2 18:42:57 EST 2018

Make M_FileExists parameter const

--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -63,7 +63,7 @@
 
 // Check if a file exists
 
-boolean M_FileExists(char *filename)
+boolean M_FileExists(const char *filename)
 {
     FILE *fstream;
 
--- a/src/m_misc.h
+++ b/src/m_misc.h
@@ -29,7 +29,7 @@
 int M_ReadFile(const char *name, byte **buffer);
 void M_MakeDirectory(const char *dir);
 char *M_TempFile(const char *s);
-boolean M_FileExists(char *file);
+boolean M_FileExists(const char *file);
 char *M_FileCaseExists(char *file);
 long M_FileLength(FILE *handle);
 boolean M_StrToInt(const char *str, int *result);