- updated build files to auto generate manpages for debian

- fixed spelling mistakes and broken links
This commit is contained in:
Mark Vejvoda
2011-12-14 06:27:35 +00:00
parent ddca84a8b4
commit 62a7186216
11 changed files with 1013 additions and 86 deletions

View File

@@ -0,0 +1,21 @@
#include "d3d9_util.h"
namespace Shared{ namespace Graphics{ namespace D3d9{
string d3dErrorToStr(HRESULT result){
switch(result){
case D3D_OK: return "D3D_OK";
case D3DERR_DEVICELOST: return "D3DERR_DEVICELOST";
case D3DERR_DEVICENOTRESET: return "D3DERR_DEVICENOTRESET";
case D3DERR_DRIVERINTERNALERROR: return "D3DERR_DRIVERINTERNALERROR";
case D3DERR_INVALIDCALL: return "D3DERR_INVALIDCALL";
case D3DERR_MOREDATA: return "D3DERR_MOREDATA";
case D3DERR_NOTFOUND: return "D3DERR_NOTFOUND";
case D3DERR_OUTOFVIDEOMEMORY: return "D3DERR_OUTOFVIDEOMEMORY";
case E_OUTOFMEMORY: return "E_OUTOFMEMORY";
default:
return "Unknown D3D error";
}
}
}}}//end namespace

View File

@@ -907,7 +907,7 @@ void Model::saveG3d(const string &path, string convertTextureToFormat,
FILE *f= fopen(tempModelFilename.c_str(), "wb");
#endif
if(f == NULL) {
throw runtime_error("Cant open file for writting: [" + tempModelFilename + "]");
throw runtime_error("Cant open file for writing: [" + tempModelFilename + "]");
}
convertTextureToFormat = toLower(convertTextureToFormat);

View File

@@ -610,7 +610,7 @@ UnitParticleSystem::Shape UnitParticleSystem::strToShape(const string& str){
return sLinear;
}
else{
throw runtime_error("Unkown particle shape: " + str);
throw runtime_error("Unknown particle shape: " + str);
}
}