Output uint64/int64 raw in exdparser
This commit is contained in:
parent
fa8fa9093a
commit
172e45412c
2 changed files with 3 additions and 2 deletions
|
@ -10,6 +10,7 @@ struct ExcelDataPagination;
|
||||||
struct Column {
|
struct Column {
|
||||||
std::string data;
|
std::string data;
|
||||||
std::string type; // for debug
|
std::string type; // for debug
|
||||||
|
int64_t uint64Data = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Row {
|
struct Row {
|
||||||
|
|
|
@ -111,8 +111,6 @@ EXD readEXD(EXH& exh, std::string_view path, ExcelDataPagination& page) {
|
||||||
fread(&byte, sizeof(uint8_t), 1, file);
|
fread(&byte, sizeof(uint8_t), 1, file);
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt::print("read {}\n", string);
|
|
||||||
|
|
||||||
c.data = string;
|
c.data = string;
|
||||||
c.type = "String";
|
c.type = "String";
|
||||||
}
|
}
|
||||||
|
@ -148,10 +146,12 @@ EXD readEXD(EXH& exh, std::string_view path, ExcelDataPagination& page) {
|
||||||
case Int64:
|
case Int64:
|
||||||
c.data = readData<int64_t>(file, offset + column.offset);
|
c.data = readData<int64_t>(file, offset + column.offset);
|
||||||
c.type = "Int";
|
c.type = "Int";
|
||||||
|
c.uint64Data = readDataRaw<int64_t>(file, offset + column.offset);
|
||||||
break;
|
break;
|
||||||
case UInt64:
|
case UInt64:
|
||||||
c.data = readData<uint64_t>(file, offset + column.offset);
|
c.data = readData<uint64_t>(file, offset + column.offset);
|
||||||
c.type = "Unsigned Int";
|
c.type = "Unsigned Int";
|
||||||
|
c.uint64Data = readDataRaw<uint64_t>(file, offset + column.offset);
|
||||||
break;
|
break;
|
||||||
case PackedBool0:
|
case PackedBool0:
|
||||||
case PackedBool1:
|
case PackedBool1:
|
||||||
|
|
Reference in a new issue