Catch a system error that OSX's SFML produces since it's at the end and looks like just a cleanup mistake.

master
Zed A. Shaw 3 days ago
parent b7948f8154
commit b68fd249ca
  1. 8
      main.cpp

@ -2,8 +2,10 @@
#include "textures.hpp"
#include "sound.hpp"
#include "autowalker.hpp"
#include <iostream>
int main(int argc, char* argv[]) {
try {
textures::init();
sound::init();
sound::mute(false);
@ -39,4 +41,10 @@ int main(int argc, char* argv[]) {
}
return 0;
} catch(const std::system_error& e) {
std::cout << "WARNING: On OSX you'll get this error on shutdown.\n";
std::cout << "Caught system_error with code "
"[" << e.code() << "] meaning "
"[" << e.what() << "]\n";
}
}

Loading…
Cancel
Save