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

Contents of /trunk/gr2lib_cpp/grannyfile.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7 - (show annotations) (download)
Sat Jul 31 01:44:00 2010 UTC (10 years, 1 month ago) by william
File size: 1215 byte(s)
commit - header redesign -- actually compiles now.

** Have some issues with loading for granny files, will fix in subsequent commits...

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 grannyfile::parse_granny_file();
17
18 }
19 grannyfile::grannyfile(const char* filename,granny_int32x ExpectedMajor, granny_int32x ExpectedMinor, granny_int32x ExpectedCustomization, granny_int32x ExpectedBuild)
20 {
21 GrannyAPIVersion = new apiversion::granny2apiversion(ExpectedMajor,ExpectedMinor,ExpectedCustomization,ExpectedBuild);
22 _GrannyFilename = filename;
23 grannyfile::parse_granny_file();
24 }
25 void grannyfile::parse_granny_file()
26 {
27
28
29 _grn_file = GrannyReadEntireFile(_GrannyFilename);
30 if (_grn_file != 0)
31 {
32 GrannyFileInfo = GrannyGetFileInfo(_grn_file);
33 }
34
35
36
37 }
38 const char* grannyfile::GrannyFilename()
39 {
40 return _GrannyFilename;
41 }
42 }
43 }

  ViewVC Help
Powered by ViewVC 1.1.22