/[Sims3RigEditor]/trunk/gr2lib_cpp/grannyfile.cpp
ViewVC logotype

Diff of /trunk/gr2lib_cpp/grannyfile.cpp

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

--- trunk/gr2lib_cpp/grannyfile.cpp	2010/07/31 01:53:40	9
+++ trunk/gr2lib_cpp/grannyfile.cpp	2010/07/31 09:33:11	12
@@ -10,9 +10,16 @@
 		{
 			assert(Message);
 		}
+		grannyfile::grannyfile()
+		{
+			GrannyAPIVersion = new apiversion::granny2apiversion();
+			_logger = new GrannyAPILogger();
+			_GrannyFilename = "";
+		}
 		grannyfile::grannyfile(const char* filename)
 		{
 			GrannyAPIVersion = new apiversion::granny2apiversion();
+			_logger = new GrannyAPILogger();
 			_GrannyFilename = filename;
 			grannyfile::parse_granny_file();
 			
@@ -20,22 +27,18 @@
 		grannyfile::grannyfile(const char* filename,granny_int32x ExpectedMajor, granny_int32x ExpectedMinor, granny_int32x ExpectedCustomization, granny_int32x ExpectedBuild)
 		{
 			GrannyAPIVersion = new apiversion::granny2apiversion(ExpectedMajor,ExpectedMinor,ExpectedCustomization,ExpectedBuild);
+			_logger = new GrannyAPILogger();
 			_GrannyFilename = filename;
 			grannyfile::parse_granny_file();
 		}
 		void grannyfile::parse_granny_file()
-		{					
-		
-			_logger = new GrannyAPILogger();
-
+		{		
+			_logger->SetLogFileName(_GrannyFilename);
 			_grn_file = GrannyReadEntireFile(_GrannyFilename);		
 			if (_grn_file != 0)
 			{
 				GrannyFileInfo = GrannyGetFileInfo(_grn_file);
 			}
-
-			
-
 		}
 		const char* grannyfile::GrannyFilename()
 		{

 

  ViewVC Help
Powered by ViewVC 1.1.22