Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Commit

Permalink
Basic support (reads, is exposed, not set/write tested)
Browse files Browse the repository at this point in the history
  FNV::NAVIRecord
  • Loading branch information
waruddar committed May 10, 2011
1 parent 0976d15 commit 2f2c126
Show file tree
Hide file tree
Showing 12 changed files with 731 additions and 166 deletions.
Binary file modified CBash.suo
Binary file not shown.
8 changes: 8 additions & 0 deletions CBash/CBash.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -1938,6 +1938,10 @@
RelativePath=".\FalloutNewVegas\Records\MSTTRecord.cpp"
>
</File>
<File
RelativePath=".\FalloutNewVegas\Records\NAVIRecord.cpp"
>
</File>
<File
RelativePath=".\FalloutNewVegas\Records\NOTERecord.cpp"
>
Expand Down Expand Up @@ -3114,6 +3118,10 @@
RelativePath=".\FalloutNewVegas\Records\API\MSTTRecordAPI.cpp"
>
</File>
<File
RelativePath=".\FalloutNewVegas\Records\API\NAVIRecordAPI.cpp"
>
</File>
<File
RelativePath=".\FalloutNewVegas\Records\API\NOTERecordAPI.cpp"
>
Expand Down
26 changes: 13 additions & 13 deletions CBash/FalloutNewVegas/FNVFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,10 @@ SINT32 FNVFile::Load(RecordOp &indexer, std::vector<FormIDResolver *> &Expanders
break;
case eIgNAVI:
case 'IVAN':
//reader.read(&NAVI.stamp, 4);
//reader.read(&NAVI.unknown, 4);
//NAVI.Skim(reader, GRUPSize, processor, indexer);
//break;
reader.read(&NAVI.stamp, 4);
reader.read(&NAVI.unknown, 4);
NAVI.Skim(reader, GRUPSize, processor, indexer);
break;
case eIgCELL:
case 'LLEC':
//reader.read(&CELL.stamp, 4);
Expand Down Expand Up @@ -955,7 +955,7 @@ UINT32 FNVFile::GetNumRecords(const UINT32 &RecordType)
case 'NGER':
return (UINT32)REGN.Records.size();
case 'IVAN':
//return (UINT32)NAVI.Records.size();
return (UINT32)NAVI.Records.size();
case 'LLEC':
//return (UINT32)CELL.Records.size();
case 'DLRW':
Expand Down Expand Up @@ -1290,9 +1290,9 @@ Record * FNVFile::CreateRecord(const UINT32 &RecordType, STRING const &RecordEdi
newRecord = REGN.Records.back();
break;
case 'IVAN':
//NAVI.Records.push_back(new FNV::NAVIRecord((FNV::NAVIRecord *)SourceRecord));
//newRecord = NAVI.Records.back();
//break;
NAVI.Records.push_back(new FNV::NAVIRecord((FNV::NAVIRecord *)SourceRecord));
newRecord = NAVI.Records.back();
break;
case 'LLEC':
//CELL.Records.push_back(new FNV::CELLRecord((FNV::CELLRecord *)SourceRecord));
//newRecord = CELL.Records.back();
Expand Down Expand Up @@ -1574,7 +1574,7 @@ SINT32 FNVFile::CleanMasters(std::vector<FormIDResolver *> &Expanders)
if(WTHR.VisitRecords(NULL, checker, false)) continue;
if(CLMT.VisitRecords(NULL, checker, false)) continue;
if(REGN.VisitRecords(NULL, checker, false)) continue;
//if(NAVI.VisitRecords(NULL, checker, false)) continue;
if(NAVI.VisitRecords(NULL, checker, false)) continue;
//if(CELL.VisitRecords(NULL, checker, false)) continue;
//if(WRLD.VisitRecords(NULL, checker, false)) continue;
//if(DIAL.VisitRecords(NULL, checker, false)) continue;
Expand Down Expand Up @@ -1712,7 +1712,7 @@ SINT32 FNVFile::Save(STRING const &SaveName, std::vector<FormIDResolver *> &Expa
formCount += WTHR.WriteGRUP('RHTW', writer, Expanders, expander, collapser, bMastersChanged, CloseMod);
formCount += CLMT.WriteGRUP('TMLC', writer, Expanders, expander, collapser, bMastersChanged, CloseMod);
formCount += REGN.WriteGRUP('NGER', writer, Expanders, expander, collapser, bMastersChanged, CloseMod);
//formCount += NAVI.WriteGRUP('IVAN', writer, Expanders, expander, collapser, bMastersChanged, CloseMod);
formCount += NAVI.WriteGRUP('IVAN', writer, Expanders, expander, collapser, bMastersChanged, CloseMod);
//formCount += CELL.WriteGRUP('LLEC', writer, Expanders, expander, collapser, bMastersChanged, CloseMod);
//formCount += WRLD.WriteGRUP('DLRW', writer, Expanders, expander, collapser, bMastersChanged, CloseMod);
//formCount += DIAL.WriteGRUP('LAID', writer, Expanders, expander, collapser, bMastersChanged, CloseMod);
Expand Down Expand Up @@ -1835,7 +1835,7 @@ void FNVFile::VisitAllRecords(RecordOp &op)
WTHR.VisitRecords(NULL, op, true);
CLMT.VisitRecords(NULL, op, true);
REGN.VisitRecords(NULL, op, true);
//NAVI.VisitRecords(NULL, op, true);
NAVI.VisitRecords(NULL, op, true);
//CELL.VisitRecords(NULL, op, true);
//WRLD.VisitRecords(NULL, op, true);
//DIAL.VisitRecords(NULL, op, true);
Expand Down Expand Up @@ -2058,8 +2058,8 @@ void FNVFile::VisitRecords(const UINT32 &TopRecordType, const UINT32 &RecordType
REGN.VisitRecords(RecordType, op, DeepVisit);
break;
case 'IVAN':
//NAVI.VisitRecords(RecordType, op, DeepVisit);
//break;
NAVI.VisitRecords(RecordType, op, DeepVisit);
break;
case 'LLEC':
//CELL.VisitRecords(RecordType, op, DeepVisit);
//break;
Expand Down
4 changes: 2 additions & 2 deletions CBash/FalloutNewVegas/FNVFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ GPL License and Copyright Notice ============================================
#include "Records/WTHRRecord.h"
#include "Records/CLMTRecord.h"
#include "Records/REGNRecord.h"
//#include "Records/NAVIRecord.h"
#include "Records/NAVIRecord.h"
//#include "Records/CELLRecord.h"
//#include "Records/WRLDRecord.h"
//#include "Records/DIALRecord.h"
Expand Down Expand Up @@ -180,7 +180,7 @@ class FNVFile : public ModFile
FNVGRUPRecords<FNV::WTHRRecord> WTHR;
FNVGRUPRecords<FNV::CLMTRecord> CLMT;
FNVGRUPRecords<FNV::REGNRecord> REGN;
//FNVGRUPRecords<FNV::NAVIRecord> NAVI;
FNVGRUPRecords<FNV::NAVIRecord> NAVI;
//FNVGRUPRecords<FNV::CELLRecord> CELL;
//FNVGRUPRecords<FNV::WRLDRecord> WRLD;
//FNVGRUPRecords<FNV::DIALRecord> DIAL;
Expand Down
Loading

0 comments on commit 2f2c126

Please sign in to comment.