structure changes

This commit is contained in:
gmueller
2011-01-17 21:50:50 +01:00
parent aff6366561
commit 3f00ee4f31
22 changed files with 41 additions and 80 deletions

22
src/client/main.cpp Normal file
View File

@ -0,0 +1,22 @@
#include "Client.h"
#include <iostream>
int main(int argc, const char **argv) {
try {
Client app;
Arguments args(argc, argv);
app.initialize(args);
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;
}
}