- When erroring due to the lack of iwads, print instructions more relevent to the user's platform.

This commit is contained in:
Braden Obrzut 2013-07-05 00:45:45 -04:00
parent 80a3e4f902
commit 9dd3c4b2d5

View file

@ -367,7 +367,7 @@ int FIWadManager::CheckIWAD (const char *doomwaddir, WadStuff *wads)
// Under UNIX OSes, the search path is: // Under UNIX OSes, the search path is:
// 1. Current directory // 1. Current directory
// 2. $DOOMWADDIR // 2. $DOOMWADDIR
// 3. $HOME/.zdoom // 3. $HOME/.config/zdoom
// 4. The share directory defined at compile time (/usr/local/share/zdoom) // 4. The share directory defined at compile time (/usr/local/share/zdoom)
// //
// The search path can be altered by editing the IWADSearch.Directories // The search path can be altered by editing the IWADSearch.Directories
@ -516,9 +516,19 @@ int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad,
I_FatalError ("Cannot find a game IWAD (doom.wad, doom2.wad, heretic.wad, etc.).\n" I_FatalError ("Cannot find a game IWAD (doom.wad, doom2.wad, heretic.wad, etc.).\n"
"Did you install ZDoom properly? You can do either of the following:\n" "Did you install ZDoom properly? You can do either of the following:\n"
"\n" "\n"
#if defined(_WIN32)
"1. Place one or more of these wads in the same directory as ZDoom.\n" "1. Place one or more of these wads in the same directory as ZDoom.\n"
"2. Edit your zdoom-username.ini and add the directories of your iwads\n" "2. Edit your zdoom-username.ini and add the directories of your iwads\n"
"to the list beneath [IWADSearch.Directories]"); "to the list beneath [IWADSearch.Directories]");
#elif defined(__APPLE__)
"1. Place one or more of these wads in ~/Library/Application Support/zdoom/\n"
"2. Edit your ~/Library/Preferences/zdoom.ini and add the directories\n"
"of your iwads to the list beneath [IWADSearch.Directories]");
#else
"1. Place one or more of these wads in ~/.config/zdoom/.\n"
"2. Edit your ~/.config/zdoom/zdoom.ini and add the directories of your\n"
"iwads to the list beneath [IWADSearch.Directories]");
#endif
} }
pickwad = 0; pickwad = 0;