int main(int argc, char** argv)
{
-#ifndef DEBUG // we want backtraces in debug mode so don't catch exceptions
try {
-#endif
srand(time(0));
init_physfs(argv[0]);
init_sdl();
// normal game
title();
}
-
-#ifndef DEBUG
} catch(std::exception& e) {
std::cerr << "Unexpected exception: " << e.what() << std::endl;
return 1;
std::cerr << "Unexpected exception." << std::endl;
return 1;
}
-#endif
free_menu();
unload_shared();