shithub: choc

Download patch

ref: b9107f377cb5a617655db82fa01e05b90325250a
parent: 904f70c0766feec220ffbad4563206f5ced5ddd3
author: Turo Lamminen <turotl@gmail.com>
date: Sat Mar 31 13:51:38 EDT 2018

Make DEH_LoadFile parameter const

--- a/src/deh_main.c
+++ b/src/deh_main.c
@@ -368,7 +368,7 @@
 
 // Parses a dehacked file
 
-int DEH_LoadFile(char *filename)
+int DEH_LoadFile(const char *filename)
 {
     deh_context_t *context;
 
--- a/src/deh_main.h
+++ b/src/deh_main.h
@@ -30,7 +30,7 @@
 #define DEH_VANILLA_NUMSFX 107
 
 void DEH_ParseCommandLine(void);
-int DEH_LoadFile(char *filename);
+int DEH_LoadFile(const char *filename);
 int DEH_LoadLump(int lumpnum, boolean allow_long, boolean allow_error);
 int DEH_LoadLumpByName(char *name, boolean allow_long, boolean allow_error);