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

Contents of /trunk/gr2lib_cpp/grannyfile.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8 - (show annotations) (download)
Sat Jul 31 01:47:17 2010 UTC (10 years, 1 month ago) by william
File size: 1247 byte(s)
When calling -> new/gcnew grannyfile::grannyfile(const char* filename)
** Actually store the filename

1 #include "StdAfx.h"
2 #include "grannyfile.h"
3
4 namespace gr2lib
5 {
6 namespace core
7 {
8 void __cdecl Callback(granny_log_message_type Type, granny_log_message_origin Origin, char const * Message, void * UserData);
9 void __cdecl Callback(granny_log_message_type Type, granny_log_message_origin Origin, char const * Message, void * UserData)
10 {
11 assert(Message);
12 }
13 grannyfile::grannyfile(const char* filename)
14 {
15 GrannyAPIVersion = new apiversion::granny2apiversion();
16 _GrannyFilename = filename;
17 grannyfile::parse_granny_file();
18
19 }
20 grannyfile::grannyfile(const char* filename,granny_int32x ExpectedMajor, granny_int32x ExpectedMinor, granny_int32x ExpectedCustomization, granny_int32x ExpectedBuild)
21 {
22 GrannyAPIVersion = new apiversion::granny2apiversion(ExpectedMajor,ExpectedMinor,ExpectedCustomization,ExpectedBuild);
23 _GrannyFilename = filename;
24 grannyfile::parse_granny_file();
25 }
26 void grannyfile::parse_granny_file()
27 {
28
29
30 _grn_file = GrannyReadEntireFile(_GrannyFilename);
31 if (_grn_file != 0)
32 {
33 GrannyFileInfo = GrannyGetFileInfo(_grn_file);
34 }
35
36
37
38 }
39 const char* grannyfile::GrannyFilename()
40 {
41 return _GrannyFilename;
42 }
43 }
44 }

  ViewVC Help
Powered by ViewVC 1.1.22