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::NAVMRecord
htoca.py works a little better generating VisitFormIDs
  • Loading branch information
waruddar committed May 16, 2011
1 parent 5fe8f41 commit ee56316
Show file tree
Hide file tree
Showing 12 changed files with 1,280 additions and 617 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 @@ -1112,6 +1112,10 @@
RelativePath=".\FalloutNewVegas\Records\CELLRecord.cpp"
>
</File>
<File
RelativePath=".\FalloutNewVegas\Records\NAVMRecord.cpp"
>
</File>
<File
RelativePath=".\FalloutNewVegas\Records\PBEARecord.cpp"
>
Expand Down Expand Up @@ -3259,6 +3263,10 @@
RelativePath=".\FalloutNewVegas\Records\API\NAVIRecordAPI.cpp"
>
</File>
<File
RelativePath=".\FalloutNewVegas\Records\API\NAVMRecordAPI.cpp"
>
</File>
<File
RelativePath=".\FalloutNewVegas\Records\API\NOTERecordAPI.cpp"
>
Expand Down
16 changes: 8 additions & 8 deletions CBash/FalloutNewVegas/FNVFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1452,15 +1452,15 @@ Record * FNVFile::CreateRecord(const UINT32 &RecordType, STRING const &RecordEdi
newRecord = ((FNV::CELLRecord *)ParentRecord)->PCBE.back();
break;
case REV32(NAVM):
//if(ParentRecord == NULL || ParentRecord->GetType() != REV32(CELL))
// {
// printf("FNVFile::CreateRecord: Error - Unable to create REFR record in mod \"%s\". Parent record type (%s) is invalid, only CELL records can be REFR parents.\n", reader.getModName(), ParentRecord->GetStrType());
// return NULL;
// }
if(ParentRecord == NULL || ParentRecord->GetType() != REV32(CELL))
{
printf("FNVFile::CreateRecord: Error - Unable to create NAVM record in mod \"%s\". Parent record type (%s) is invalid, only CELL records can be REFR parents.\n", reader.getModName(), ParentRecord->GetStrType());
return NULL;
}

//((CELLRecord *)ParentRecord)->REFR.push_back(new REFRRecord((REFRRecord *)SourceRecord));
//newRecord = ((CELLRecord *)ParentRecord)->REFR.back();
//break;
((FNV::CELLRecord *)ParentRecord)->NAVM.push_back(new FNV::NAVMRecord((FNV::NAVMRecord *)SourceRecord));
newRecord = ((FNV::CELLRecord *)ParentRecord)->NAVM.back();
break;
case REV32(LAND):
//if(ParentRecord == NULL || ParentRecord->GetType() != REV32(CELL))
// {
Expand Down
Loading

0 comments on commit ee56316

Please sign in to comment.