Fixing loading problem
+ ImHex Pattern Code
This commit is contained in:
parent
72d1bf3bfb
commit
37a249dc62
9 changed files with 179 additions and 41 deletions
20
src/main.cpp
20
src/main.cpp
|
@ -3,13 +3,29 @@
|
|||
|
||||
#include "Game.hpp"
|
||||
|
||||
#include <iostream>
|
||||
int main()
|
||||
{
|
||||
sf::RenderWindow window(sf::VideoMode({800, 450}), "Colysis", sf::Style::Close | sf::Style::Titlebar);
|
||||
window.setMinimumSize(sf::Vector2u{800, 450});
|
||||
|
||||
Game game(window);
|
||||
game.run();
|
||||
try {
|
||||
Game game(window);
|
||||
game.run();
|
||||
}
|
||||
catch (const std::runtime_error& e)
|
||||
{
|
||||
std::cerr << e.what() << std::endl;
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
std::cerr << e.what() << std::endl;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
std::cerr << "Unknown error" << std::endl;
|
||||
}
|
||||
|
||||
std::flush(std::cerr);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue