diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-11-01 15:48:46 +0300 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-11-01 15:48:46 +0300 |
commit | 54401d36aadabe38decd9cd64f1385e1757bd303 (patch) | |
tree | d11dee61cec1e4fd617e687f97244a17e55179b6 /source/gameengine/VideoTexture/Exception.cpp | |
parent | b590b121d354ca1352191f56aa66d0c2ee494fb4 (diff) |
BGE Video Texture: fix constant initializer problem with Exception description. Uniformized the line ending.
Diffstat (limited to 'source/gameengine/VideoTexture/Exception.cpp')
-rw-r--r-- | source/gameengine/VideoTexture/Exception.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/source/gameengine/VideoTexture/Exception.cpp b/source/gameengine/VideoTexture/Exception.cpp index a326430b27a..c576cebddc8 100644 --- a/source/gameengine/VideoTexture/Exception.cpp +++ b/source/gameengine/VideoTexture/Exception.cpp @@ -44,7 +44,6 @@ ExpDesc errNFoundDesc (ErrNotFound, "Error description not found"); ExpDesc::ExpDesc (ExceptionID & exp, char * desc, RESULT hres) : m_expID(exp), m_hRslt(hres), m_description(desc) { - m_expDescs.push_back(this); } // destructor @@ -196,3 +195,15 @@ void Exception::copy (const Exception & xpt) m_fileName = xpt.m_fileName; m_line = xpt.m_line; } + +void registerAllExceptions(void) +{ + errGenerDesc.registerDesc(); + errNFoundDesc.registerDesc(); + MaterialNotAvailDesc.registerDesc(); + ImageSizesNotMatchDesc.registerDesc(); + SceneInvalidDesc.registerDesc(); + CameraInvalidDesc.registerDesc(); + SourceVideoEmptyDesc.registerDesc(); + SourceVideoCreationDesc.registerDesc(); +} |