/[Sims3RigEditor]/trunk/gr2lib_typedefs/typedefs/TextureCreator/bink_texture_creator.cs
ViewVC logotype

Diff of /trunk/gr2lib_typedefs/typedefs/TextureCreator/bink_texture_creator.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/gr2lib_typedefs/typedefs/TextureCreator/bink_texture_creator.cs	2010/08/07 02:42:31	48
+++ trunk/gr2lib_typedefs/typedefs/TextureCreator/bink_texture_creator.cs	2010/08/08 07:43:37	49
@@ -26,10 +26,22 @@
         #region ATextureResource Members
         protected override void Parse()
         {
-            this.TextureCreatorType = TextureCreators.bink;
-            //this.TextureEncodingType = granny_texture_encoding.GrannyBinkTextureEncoding;
-            throw new NotImplementedException("bink texture creation has not been implemented");
-        }
+            try
+            {
+                throw new NotImplementedException("bink texture creation has not been implemented");
+                //this.Stream.Seek(0, SeekOrigin.Begin);
+                //this.TextureCreatorType = TextureCreators.bink;
+                //this.TextureEncodingType = granny_texture_encoding.GrannyBinkTextureEncoding;
+                
+            }
+            catch (Exception ex)
+            {
+                this.HaveBindableTexture = false;
+                //Debug.WriteLine(ex.ToString());
+                throw new InvalidOperationException("Failed to read texture using: " + new bink_texture_creator().TextureCreatorName, ex);
+            }
+
+       }
         protected override MemoryStream UnParse()
         {
             throw new NotImplementedException("bink texture creation has not been implemented");

 

  ViewVC Help
Powered by ViewVC 1.1.22