shithub: choc

Download patch

ref: d7565fb3cad03ac2c58deec5f45c2964055e624b
parent: 5d82938c3c0bd4d54bc18d85f668f49216307396
author: Turo Lamminen <turotl@gmail.com>
date: Tue Jul 24 14:32:51 EDT 2018

d_iwad: Make D_SuggestGameName return value const

--- a/src/d_iwad.c
+++ b/src/d_iwad.c
@@ -929,7 +929,7 @@
     return "unknown.wad";
 }
 
-char *D_SuggestGameName(GameMission_t mission, GameMode_t mode)
+const char *D_SuggestGameName(GameMission_t mission, GameMode_t mode)
 {
     int i;
 
--- a/src/d_iwad.h
+++ b/src/d_iwad.h
@@ -45,7 +45,7 @@
 const iwad_t **D_FindAllIWADs(int mask);
 const char *D_SaveGameIWADName(GameMission_t gamemission);
 const char *D_SuggestIWADName(GameMission_t mission, GameMode_t mode);
-char *D_SuggestGameName(GameMission_t mission, GameMode_t mode);
+const char *D_SuggestGameName(GameMission_t mission, GameMode_t mode);
 void D_CheckCorrectIWAD(GameMission_t mission);
 
 #endif