gremlin/src/client/main.cpp

23 lines
453 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
2011-01-16 23:02:40 +01:00
int main(int argc, const char **argv) {
2011-01-14 14:59:18 +01:00
try {
Client app;
2011-01-16 23:02:40 +01:00
Arguments args(argc, argv);
app.initialize(args);
2011-01-14 14:59:18 +01:00
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
}