Unify executable for Spawn and Retail

The game will now autodetect if it should run in shareware mode or full
retail based on the found mpq file. Additionally it can beforced in the
shareware mode with --spawn even if the retail data is found.

This simplifies a lot of the spagetty code and lets us better refactor,
also worth noteing is that we won't have to setup a secound set of build
tests.
This commit is contained in:
Anders Jenbo 2020-10-20 19:40:17 +02:00
commit e073422ce7
40 changed files with 280 additions and 729 deletions

View file

@ -144,16 +144,15 @@ void FileErrDlg(const char *error)
/**
* @brief Terminates the game with an insert CD error dialog.
*/
void InsertCDDlg(const char *fileName)
void InsertCDDlg()
{
char text[1024];
snprintf(
text,
1024,
"Unable to open %s.\n"
"Unable to open main data archive (diabdat.mpq or spawn.mpq).\n"
"\n"
"Make sure that it is in the game folder and that the file name is in all lowercase.",
fileName);
"Make sure that it is in the game folder and that the file name is in all lowercase.");
UiErrorOkDialog("Data File Error", text);
app_fatal(NULL);