-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: index parent esms and handle overwritten records
- Loading branch information
1 parent
dee225a
commit 7866a42
Showing
10 changed files
with
129 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include "TES4.h" | ||
|
||
#include <ESLoader.h> | ||
|
||
TES4 TES4::ParseChunks() noexcept | ||
{ | ||
TES4 tes4; | ||
tes4.CopyRecordData(*this); | ||
|
||
IterateChunks([&](ChunkId aChunkId, Buffer::Reader& aReader) { | ||
switch (aChunkId) | ||
{ | ||
case ChunkId::MAST_ID: | ||
Chunks::MAST mast(aReader); | ||
tes4.m_masterFiles.push_back(mast); | ||
break; | ||
} | ||
}); | ||
|
||
return tes4; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
|
||
#include "Record.h" | ||
#include "Chunks.h" | ||
|
||
// https://en.uesp.net/wiki/Skyrim_Mod:Mod_File_Format/TES4 | ||
class TES4 : public Record | ||
{ | ||
public: | ||
static constexpr FormEnum kType = FormEnum::CONT; | ||
|
||
// Master files | ||
Vector<Chunks::MAST> m_masterFiles{}; | ||
|
||
TES4 ParseChunks() noexcept; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters