Changeset 1123 for trunk/gsdl/src
- Timestamp:
- 2000-04-18T16:02:02+12:00 (24 years ago)
- Location:
- trunk/gsdl/src/mgpp/text
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/mgpp/text/TextGet.cpp
r855 r1123 478 478 479 479 void TextData::Clear () { 480 cd.Clear(); // not implemented480 cd.Clear(); 481 481 textFile = NULL; 482 482 textIdxFile = NULL; … … 485 485 } 486 486 487 bool TextData::LoadData (char *textname) { 487 bool TextData::LoadData (char *basepath, char *textname) { 488 489 if (textname[0] == '\0') return false; 490 491 // set the basepath 492 set_basepath(basepath); 493 488 494 // load the compression dictionary 489 495 if (!OpenLoadCompDict (textname, cd)) return false; -
trunk/gsdl/src/mgpp/text/TextGet.h
r855 r1123 42 42 // loads compression dictionary, the compressed text header, 43 43 // and all level informaiton 44 bool LoadData (char * textname);44 bool LoadData (char *basepath, char *textname); 45 45 bool UnloadData (); 46 46 }; -
trunk/gsdl/src/mgpp/text/mg_decompress_text.cpp
r856 r1123 34 34 int ch; 35 35 char *filename = ""; 36 char *basePath = ""; 36 37 UCArray level; 37 38 SetCStr (level, "Document"); … … 47 48 break; 48 49 case 'd': 50 basePath = optarg; 49 51 set_basepath (optarg); 50 52 break; … … 62 64 // load up the text information 63 65 TextData td; 64 if (!td.LoadData ( filename)) {66 if (!td.LoadData (basePath, filename)) { 65 67 FatalError (1, "Couldn't load text information for \"%s\"", filename); 66 68 } … … 90 92 return 0; 91 93 } 94 95
Note:
See TracChangeset
for help on using the changeset viewer.