This repository has been archived by the owner. It is now read-only.
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Rewrote almost everything in the ESM Reader.
Fixed nested GRUPS and better handling of records. Now it supports Zip compressed records.
- Loading branch information
Showing
38 changed files
with
13,007 additions
and
485 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,72 @@ | ||
#pragma once | ||
|
||
#include <Windows.h> | ||
#include <iostream> | ||
#include <fstream> | ||
#include <vector> | ||
|
||
#include "zlib/zlib.h" | ||
|
||
using namespace std; | ||
|
||
#define byte char | ||
#define byte char | ||
|
||
struct MNAM | ||
{ | ||
unsigned int width; | ||
unsigned int height; | ||
unsigned short nwCellX,nwCellY,seCellX,seCellY; | ||
}; | ||
|
||
struct standardRecord | ||
{ | ||
int type; | ||
char* start; | ||
char* end; | ||
int parent; | ||
|
||
int groupType; | ||
|
||
int formID; | ||
char EDID[64]; | ||
char FULL[128]; | ||
int XCLC[2]; | ||
|
||
struct | ||
{ | ||
unsigned int width; | ||
unsigned int height; | ||
unsigned short NW_cell_X; | ||
unsigned short NW_cell_Y; | ||
unsigned short SE_cell_X; | ||
unsigned short SE_cell_Y; | ||
} MNAM; | ||
|
||
float ONAM[3]; | ||
}; | ||
|
||
struct RECORD_NPC | ||
{ | ||
unsigned int formID; | ||
char fullName[128]; | ||
char editorID[64]; | ||
}; | ||
|
||
struct RECORD_WEAP | ||
{ | ||
unsigned int formID; | ||
char fullName[128]; | ||
char editorID[64]; | ||
}; | ||
|
||
struct RECORD_AMMO | ||
{ | ||
unsigned int formID; | ||
char fullName[128]; | ||
char editorID[64]; | ||
}; | ||
|
||
|
||
#define RECORD_GROUP 1 | ||
#define RECORD_RECORD 2 | ||
#define RECORD_FIELD 3 |
Oops, something went wrong.