/[Sims3RigEditor]/trunk/gr2lib_cpp/gr2lib_rigeditor_frm.h
ViewVC logotype

Diff of /trunk/gr2lib_cpp/gr2lib_rigeditor_frm.h

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

--- trunk/gr2lib_cpp/gr2lib_rigeditor_frm.h	2010/08/14 11:56:00	76
+++ trunk/gr2lib_cpp/gr2lib_rigeditor_frm.h	2010/08/14 12:49:25	81
@@ -831,29 +831,6 @@
 #pragma endregion
 #pragma endregion
 
-
-#pragma region DoPostSave_Operations
-	void DoPostSave_Operations()
-	{
-		//// Compress Bink Textures
-		//for(int i=0;i<_grn_file->GrannyFileInfo->TextureCount;i++)
-		//{
-		//	if (_grn_file->GrannyFileInfo->Textures[i]->Encoding == granny_texture_encoding::GrannyBinkTextureEncoding)
-		//	{	
-		//		int bink_compress = GrannyBinkCompressTexture(
-		//			_grn_file->GrannyFileInfo->Textures[i]->Width,
-		//			_grn_file->GrannyFileInfo->Textures[i]->Height,
-		//			_grn_file->GrannyFileInfo->Textures[i]->Width * _grn_file->GrannyFileInfo->Textures[i]->Layout.BytesPerPixel,
-		//			_grn_file->GrannyFileInfo->Textures[i]->Images,
-		//			granny_bink_texture_flags::GrannyBinkEncodeAlpha,
-		//			granny_compression_type::GrannyNoCompression,
-		//			_grn_file->GrannyFileInfo->Textures[i]);
-		//		int a = 0;
-		//	}
-		//}
-	}
-#pragma endregion
-
 private: System::Void mnuItemExit_Click(System::Object^  sender, System::EventArgs^  e) 
 		 {
 			 ConvertToNative();
@@ -961,8 +938,6 @@
 				 ConvertToNative();
 				 const char* filename = _grn_file->_GrannyFilename;
 				 GrannyFileWriter::WriteFile(filename,_grn_file->GrannyFileInfo,_grn_file->_logger);		
-				 //DoPostSave_Operations();
-				 //GrannyFileWriter::WriteFile(filename,_grn_file->GrannyFileInfo,_grn_file->_logger);
 				 System::Windows::Forms::MessageBox::Show("Successfully Saved: \n" + gcnew String(_grn_file->GrannyFilename()),"File Writer:", MessageBoxButtons::OK,MessageBoxIcon::Information);
 			 }
 			 catch(Exception^ ex)
@@ -980,8 +955,6 @@
 				 if (result != System::Windows::Forms::DialogResult::OK) return;
 				 const char* filename = (char*)Marshal::StringToHGlobalAnsi(RigSaver->FileName).ToPointer();
 				 GrannyFileWriter::WriteFile(filename,_grn_file->GrannyFileInfo,_grn_file->_logger);		
-				 //DoPostSave_Operations();
-				 //GrannyFileWriter::WriteFile(filename,_grn_file->GrannyFileInfo,_grn_file->_logger);
 				 System::Windows::Forms::MessageBox::Show("Successfully Saved: \n" +  gcnew String(_grn_file->GrannyFilename()),"File Writer:", MessageBoxButtons::OK,MessageBoxIcon::Information);
 			 }
 			 catch(Exception^ ex)

 

  ViewVC Help
Powered by ViewVC 1.1.22