For instance, the idclev cheat handling in st_stuff.c has to check if the game is shareware and restrict level changes beyond a certain range.
I haven't done a deep dive on the code, but it looks like gamemode is set based on something in the WAD file.
For instance, the idclev cheat handling in st_stuff.c has to check if the game is shareware and restrict level changes beyond a certain range.