Added an error message if a level fails to load.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <commdlg.h>
|
||||
#include "ErrorFunctions.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace rapidxml;
|
||||
@@ -410,6 +411,12 @@ bool DataModelInstance::load(const char* filename, bool clearObjects)
|
||||
name = tname;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
std::stringstream msg;
|
||||
msg << "Failed to load file:" << std::endl << filename << std::endl << strerror(errno);
|
||||
MessageBoxStr(msg.str());
|
||||
}
|
||||
}
|
||||
|
||||
bool DataModelInstance::readXMLFileStream(std::ifstream* file)
|
||||
|
||||
Reference in New Issue
Block a user