mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
ERM parser won't crash when there is no Data/s folder (addressing issue #717)
This commit is contained in:
@ -57,6 +57,11 @@ DLL_EXPORT void initDLL(CConsoleHandler *Console, std::ostream *Logfile)
|
||||
|
||||
using namespace boost::filesystem;
|
||||
//parser checking
|
||||
if(!exists("./Data/s/"))
|
||||
{
|
||||
tlog3 << "Warning: Folder ./Data/s/ doesn't exist!\n";
|
||||
return;
|
||||
}
|
||||
directory_iterator enddir;
|
||||
for (directory_iterator dir(DATA_DIR "/Data/s"); dir!=enddir; dir++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user