mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-22 14:23:53 +00:00
39 lines
692 B
C++
39 lines
692 B
C++
#include <iostream>
|
|
|
|
#include "esm_store.hpp"
|
|
#include "cell_store.hpp"
|
|
|
|
using namespace std;
|
|
|
|
// See setup.cpp
|
|
void main_setup(const char* bsaFile);
|
|
|
|
void maintest()
|
|
{
|
|
const char* esmFile = "data/Morrowind.esm";
|
|
const char* bsaFile = "data/Morrowind.bsa";
|
|
|
|
main_setup(bsaFile);
|
|
|
|
cout << "Loading ESM " << esmFile << "\n";
|
|
ESM::ESMReader esm;
|
|
ESMS::ESMStore store;
|
|
ESMS::CellStore cell;
|
|
|
|
esm.open(esmFile);
|
|
store.load(esm);
|
|
cell.loadInt("Beshara", store, esm);
|
|
|
|
cout << "\nThat's all for now!\n";
|
|
}
|
|
|
|
int main(/*int argc, char**argv*/)
|
|
{
|
|
try { maintest(); }
|
|
catch(exception &e)
|
|
{
|
|
cout << "\nERROR: " << e.what() << endl;
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|