1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 16:53:54 +00:00
openmw/game/main.cpp

40 lines
692 B
C++
Raw Normal View History

#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;
2010-05-17 18:59:15 +00:00
ESMS::ESMStore store;
ESMS::CellStore cell;
esm.open(esmFile);
2010-05-17 18:59:15 +00:00
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;
}