Now instead of hammering your working directory, all operations happen in-memory using two new classes, MemoryBuffer and MemorySpan. This has already fixed numerous bugs especially around handling model files. All operations on files inside dat's now happen on memory buffers, with an option to write them to a file. A lot of now useless debug messages are removed too, as that made some operations needlessly bound by the speed of your console output.
17 lines
No EOL
230 B
C++
17 lines
No EOL
230 B
C++
#pragma once
|
|
|
|
#include <string_view>
|
|
#include <vector>
|
|
#include <string>
|
|
#include "memorybuffer.h"
|
|
|
|
struct EXLRow {
|
|
std::string name;
|
|
int id;
|
|
};
|
|
|
|
struct EXL {
|
|
std::vector<EXLRow> rows;
|
|
};
|
|
|
|
EXL readEXL(MemorySpan data); |