Commit graph

3950 commits

Author SHA1 Message Date
Simon Howard
679c98f0bf
README.Music: add gusgonna.wad reference
We faithfully emulate the GUS instrument mappings bug, which
can sound unpleasant. gusgonna.wad is now available as a
workaround.
2018-05-27 10:06:15 -04:00
Simon Howard
052d6e3ba9
Merge pull request #1041 from turol/const
Fix const correctness in dehacked
2018-05-25 22:34:53 -04:00
Turo Lamminen
f95176a5b8 config: Fix const correctness issue in M_GetSaveGameDir
Some paths return a new string so all paths must return a new string.
Otherwise the caller wouldn't know whether to release it or not.
2018-05-23 12:39:43 +03:00
Turo Lamminen
a4071b31a4 doom: Make bex_string_t macro and string members const 2018-05-19 16:00:53 +03:00
Turo Lamminen
0c055a93a7 doom: Make deh_signatures const 2018-05-19 15:58:45 +03:00
Turo Lamminen
16e522fa38 doom: Make misc_settings deh_name member const 2018-05-19 15:57:30 +03:00
Turo Lamminen
cf3b0c54fd doom: Make deh_cheat_t name member const 2018-05-19 15:52:48 +03:00
Turo Lamminen
87fc4ff8ef dehacked: Make DEH_LoadLumpByName name parameter const 2018-05-19 15:52:48 +03:00
Turo Lamminen
f817723448 dehacked: Make deh_mapping_entry_s name member const 2018-05-19 15:52:48 +03:00
Turo Lamminen
87fe8d3502 dehacked: Make deh_section_s name member const 2018-05-19 15:52:48 +03:00
Turo Lamminen
7862764e12 dehacked: Make DEH_snprintf fmt parameter const 2018-05-19 15:52:48 +03:00
Turo Lamminen
729ba987bd dehacked: Make DEH_fprintf fmt parameter const 2018-05-19 15:52:48 +03:00
Turo Lamminen
2c0921509f dehacked: Make DEH_printf fmt parameter const 2018-05-19 15:52:48 +03:00
Turo Lamminen
d11c65d0dc dehacked: Make FormatStringReplacement parameter const 2018-05-19 15:52:48 +03:00
Turo Lamminen
2f44d86ea2 dehacked: Make DEH_String parameter and return value const
This can't be broken into smaller pieces because of this kind of code:

        lumpname = DEH_String(lumpname);
2018-05-19 15:52:48 +03:00
Turo Lamminen
f1c16b2d0a strife: Remove redundant call to DEH_String
Closes #1039
2018-05-19 15:52:48 +03:00
Turo Lamminen
5c28b4cd72 strife: Fix const correctness in status bar load/unload callbacks 2018-05-15 20:22:10 +03:00
Turo Lamminen
f151ec4a68 strife: Make spritename variable const 2018-05-15 20:19:39 +03:00
Turo Lamminen
460c46283f strife: Fix const correctness issues in P_InitPicAnims 2018-05-15 20:15:37 +03:00
Turo Lamminen
003395076f strife: Make R_FlatNumForName parameter const 2018-05-15 20:14:52 +03:00
Turo Lamminen
db5a745b8c strife: Fix const correctness issue in A_QuestMsg 2018-05-15 20:13:27 +03:00
Turo Lamminen
a4d9fa1b48 strife: Fix const correctness issue in P_DialogStart 2018-05-15 20:12:45 +03:00
Turo Lamminen
78b0a9cf90 strife: Make dialogname variable const 2018-05-15 20:11:51 +03:00
Turo Lamminen
c7eeab6b89 strife: Fix const correctness issue in P_DialogDoChoice 2018-05-15 20:09:21 +03:00
Turo Lamminen
2ef954743c strife: Fix const correctness issue in M_Drawer 2018-05-15 20:08:35 +03:00
Turo Lamminen
09a8efb0bd strife: Make M_StartMessage string parameter const 2018-05-15 20:07:30 +03:00
Turo Lamminen
acb2cc4690 strife: Make messageString variable const 2018-05-15 20:05:58 +03:00
Turo Lamminen
8edd2c73b5 strife: Make M_StringWidth parameter const 2018-05-15 20:04:40 +03:00
Turo Lamminen
8c8cc817d5 strife: Make M_StringHeight parameter const 2018-05-15 20:04:09 +03:00
Turo Lamminen
bba32942c4 strife: Make R_TextureNumForName parameter const 2018-05-15 20:01:23 +03:00
Turo Lamminen
350cc9f150 strife: Make R_CheckTextureNumForName parameter const 2018-05-15 19:59:55 +03:00
Turo Lamminen
f95fab8463 strife: Make slideshow_panel variable const 2018-05-15 19:56:30 +03:00
Turo Lamminen
9d190befdc strife: Fix const correctness issue in PrintDehackedBanners 2018-05-15 19:54:43 +03:00
Turo Lamminen
32b9a6160f strife: Fix const correctness issue in GetGameName 2018-05-15 19:53:58 +03:00
Turo Lamminen
333de63bfa strife: Make G_DeferedPlayDemo parameter const 2018-05-15 19:52:25 +03:00
Turo Lamminen
a6ef89c78a strife: Make defdemoname variable const 2018-05-15 19:51:46 +03:00
Turo Lamminen
c058a8d706 strife: Mark pagename variable const 2018-05-15 19:38:44 +03:00
Turo Lamminen
08f43ba7d9 strife: Make player_t message member const 2018-05-15 19:35:47 +03:00
Turo Lamminen
049cd60200 strife: Make saveg_writep parameter const 2018-05-15 19:34:04 +03:00
Turo Lamminen
4d79cf3d61 strife: Mark HU_addMessage static 2018-05-15 19:32:53 +03:00
Turo Lamminen
0d1e198290 strife: Make HU_addMessage message parameter const 2018-05-15 19:32:23 +03:00
Turo Lamminen
67bab2b5a5 strife: Make HU_addMessage prefix parameter const 2018-05-15 19:29:10 +03:00
Turo Lamminen
a30921a54c strife: Fix const correctness issues in HU_addMessage 2018-05-15 19:28:20 +03:00
Turo Lamminen
b262a37ca3 strife: Make HUlib_addMessageToSText msg parameter const 2018-05-15 19:26:50 +03:00
Turo Lamminen
971586b335 strife: Make HUlib_addMessageToSText prefix parameter const 2018-05-15 19:25:09 +03:00
Turo Lamminen
184efd6116 dehacked: Make FormatStringReplacement return value const 2018-05-15 19:14:54 +03:00
Turo Lamminen
beba1a4074 dehacked: Fix const correctness issue in DEH_snprintf 2018-05-15 19:12:00 +03:00
Turo Lamminen
869f807060 dehacked: Fix const correctness issue in DEH_fprintf 2018-05-15 19:11:19 +03:00
Turo Lamminen
73d172d730 dehacked: Fix const correctness issue in DEH_printf 2018-05-15 19:11:17 +03:00
Turo Lamminen
2550ff5bd9 d_iwad: Fix memory leak in CheckDirectoryHasIWAD
M_FileCaseExists returns a new string so we must free filename before returning.
2018-05-15 19:06:51 +03:00