- added a new function to correct some file paths when loading a saved game from another persons computer (may need more tweaking)

- added support for saving and loading tables from Lua
This commit is contained in:
Mark Vejvoda
2012-03-29 18:14:25 +00:00
parent c13e0ef788
commit f3df72bb14
8 changed files with 323 additions and 151 deletions

View File

@@ -783,10 +783,10 @@ void MapPreview::loadFromFile(const string &path) {
else {
#ifdef WIN32
DWORD error = GetLastError();
string strError = "Could not open file, result: " + intToStr(error) + " - " + intToStr(fileErrno) + " " + strerror(fileErrno) + " [" + path + "]";
string strError = "[#5] Could not open file, result: " + intToStr(error) + " - " + intToStr(fileErrno) + " " + strerror(fileErrno) + " [" + path + "]";
throw strError;
#else
throw runtime_error("error opening map file: " + path);
throw runtime_error("[#5] error opening map file: " + path);
#endif
}
}