gremlin/src/main.cpp

22 lines
423 B
C++
Raw Normal View History

2011-01-14 14:59:18 +01:00
#include "Client.h"
2011-01-04 18:11:59 +01:00
2011-01-14 14:59:18 +01:00
#include <iostream>
2011-01-04 18:11:59 +01:00
int main(int argc, char ** argv) {
2011-01-14 14:59:18 +01:00
try {
Client app;
app.initialize(argc, argv);
while (app.isRunning())
app.update();
app.shutdown();
return 0;
} catch (const char *str) {
std::cerr << "Exception: " << str << std::endl;
return 1;
} catch (const std::exception &e) {
std::cerr << "Exception: " << e.what() << std::endl;
return 1;
}
2011-01-04 18:11:59 +01:00
}