Catch a system error that OSX's SFML produces since it's at the end and looks like just a cleanup mistake.
This commit is contained in:
parent
b7948f8154
commit
b68fd249ca
1 changed files with 38 additions and 30 deletions
8
main.cpp
8
main.cpp
|
@ -2,8 +2,10 @@
|
||||||
#include "textures.hpp"
|
#include "textures.hpp"
|
||||||
#include "sound.hpp"
|
#include "sound.hpp"
|
||||||
#include "autowalker.hpp"
|
#include "autowalker.hpp"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
|
try {
|
||||||
textures::init();
|
textures::init();
|
||||||
sound::init();
|
sound::init();
|
||||||
sound::mute(false);
|
sound::mute(false);
|
||||||
|
@ -39,4 +41,10 @@ int main(int argc, char* argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
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…
Add table
Add a link
Reference in a new issue