shithub: choc

Download patch

ref: 87fc4ff8efbeb21a15293df02c8ee23762ba1b84
parent: f81772344829143ed3b16bfb7764c1d66414a886
author: Turo Lamminen <turotl@gmail.com>
date: Sat May 19 11:44:22 EDT 2018

dehacked: Make DEH_LoadLumpByName name parameter const

--- a/src/deh_main.c
+++ b/src/deh_main.c
@@ -445,7 +445,7 @@
     return 1;
 }
 
-int DEH_LoadLumpByName(char *name, boolean allow_long, boolean allow_error)
+int DEH_LoadLumpByName(const char *name, boolean allow_long, boolean allow_error)
 {
     int lumpnum;
 
--- a/src/deh_main.h
+++ b/src/deh_main.h
@@ -32,7 +32,7 @@
 void DEH_ParseCommandLine(void);
 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);
+int DEH_LoadLumpByName(const char *name, boolean allow_long, boolean allow_error);
 
 boolean DEH_ParseAssignment(char *line, char **variable_name, char **value);