![]() |
Blamite Game Engine - blam!
00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
|
#include "tag_io.h"#include "tags.h"#include <fstream>#include "components/settings/config/config.h"#include "components/content/project/project.h"#include "components/content/tags/tagclass.h"#include "components/content/tags/fields.h"#include "components/resources/engine_definitions/engine_definitions.h"#include "components/diagnostics/logger/logger.h"#include "version_data.h"
Include dependency graph for tag_io.cpp:Functions | |
| void | LoadSectionTagReferences (char *address, int size, std::string tag_path) |
| Attempts to resolve any tag references within the given tag data section. More... | |
| void * | LoadTagDataSection (int offset, int size, std::ifstream *tag_file) |
| Loads a tag data section from a file. More... | |
| void * | LoadTagDataSection (int offset, int size, void *tag_data_start_address) |
| Loads a tag data section from a file. More... | |
| bool | LoadTagDataSection__New (void *tag_address, int size, int header_size) |
| bool | FixupClonedTagData (void *tag_address, int size, void *original_tag_address) |
| std::vector< char > | BuildTagDataSection (void *section_data, int size, int start_offset) |
| Prepares a tag data section for saving. More... | |
Variables | |
| std::string | loading_tag_path = "" |
| std::vector<char> BuildTagDataSection | ( | void * | section_data, |
| int | size, | ||
| int | start_offset | ||
| ) |
Prepares a tag data section for saving.
This will build a list of all bytes for both the data section itself, as well as for any referenced data (such as blocks or tagrefs). It will also convert memory addresses to file offsets.
| section_data | - Address of the section data, would be either the tag data, or the block entry data. |
| size | - The size of the section data, would be either the tag's base size or the combined size of all block entries. |
| start_offset | - The start offset of the data. Used to convert memory addresses to file offsets. |
Here is the call graph for this function:
Here is the caller graph for this function:| bool FixupClonedTagData | ( | void * | tag_address, |
| int | size, | ||
| void * | original_tag_address | ||
| ) |
Here is the caller graph for this function:| void LoadSectionTagReferences | ( | char * | address, |
| int | size, | ||
| std::string | tag_path | ||
| ) |
Attempts to resolve any tag references within the given tag data section.
| address | - The data section address. |
| size | - The data section size. |
| tag_path | - The path of the tag. Used for debug messages. |
Here is the call graph for this function:
Here is the caller graph for this function:| void* LoadTagDataSection | ( | int | offset, |
| int | size, | ||
| std::ifstream * | tag_file | ||
| ) |
Loads a tag data section from a file.
This can be used to load both base tag data, as well as tag entry data.
| offset | - The offset to read from within the tag file. |
| size | - The size of the section data. |
| tag_file | - Pointer to the tag file to read from. |
Here is the call graph for this function:
Here is the caller graph for this function:| void* LoadTagDataSection | ( | int | offset, |
| int | size, | ||
| void * | tag_data_start_address | ||
| ) |
Loads a tag data section from a file.
This can be used to load both base tag data, as well as tag entry data.
| offset | - The offset to read from within the tag file. |
| size | - The size of the section data. |
| tag_data_start_address | - Address pointing to the start of the tag data. |
Here is the call graph for this function:| bool LoadTagDataSection__New | ( | void * | tag_address, |
| int | size, | ||
| int | header_size | ||
| ) |
Here is the caller graph for this function:| std::string loading_tag_path = "" |