Naming inconsistencies.
This commit is contained in:
@@ -14,7 +14,7 @@ int main(void) {
|
||||
errno_t ret = 0;
|
||||
|
||||
// Read in the esp file
|
||||
struct sized_buf esp_buf = { 0 };
|
||||
SizedBuf esp_buf = { 0 };
|
||||
{
|
||||
FILE *fp;
|
||||
ret = fopen_s(&fp, "Skyrim.esm", "rb");
|
||||
@@ -38,10 +38,10 @@ int main(void) {
|
||||
}
|
||||
|
||||
// Calculate esp stats
|
||||
struct esp_stats stats = espr_stats(esp_buf);
|
||||
ESPStats stats = espr_stats(esp_buf);
|
||||
|
||||
// Decompress the esp file
|
||||
struct sized_buf decom_buf = { 0 };
|
||||
SizedBuf decom_buf = { 0 };
|
||||
{
|
||||
decom_buf.size = stats.decompressed_size;
|
||||
decom_buf.data = malloc(decom_buf.size);
|
||||
@@ -54,7 +54,7 @@ int main(void) {
|
||||
}
|
||||
|
||||
// Construct the meta tree
|
||||
struct sized_buf tree_buf = { 0 };
|
||||
SizedBuf tree_buf = { 0 };
|
||||
MetaTree tree = { 0 };
|
||||
{
|
||||
tree_buf.size = espr_tree_size(stats);
|
||||
@@ -67,7 +67,7 @@ int main(void) {
|
||||
}
|
||||
|
||||
// Serialize and write out the uncompressed esp
|
||||
struct sized_buf serialized_buf = { 0 };
|
||||
SizedBuf serialized_buf = { 0 };
|
||||
{
|
||||
serialized_buf.size = tree.size;
|
||||
serialized_buf.data = malloc(serialized_buf.size);
|
||||
|
||||
Reference in New Issue
Block a user