shithub: choc

Download patch

ref: 6e18c2ecdcf43654a202e774f1def3266292be93
parent: ea34b7bcf061858218a86a09696ce21deff757f4
author: Turo Lamminen <[email protected]>
date: Tue Jan 22 14:06:36 EST 2019

setup: Make GetGameTitle return value const

--- a/src/setup/mode.c
+++ b/src/setup/mode.c
@@ -372,7 +372,7 @@
     return executable;
 }
 
-char *GetGameTitle(void)
+const char *GetGameTitle(void)
 {
     return game_title;
 }
--- a/src/setup/mode.h
+++ b/src/setup/mode.h
@@ -24,7 +24,7 @@
 void SetupMission(GameSelectCallback callback);
 void InitBindings(void);
 const char *GetExecutableName(void);
-char *GetGameTitle(void);
+const char *GetGameTitle(void);
 const iwad_t **GetIwads(void);
 
 #endif /* #ifndef SETUP_MODE_H */