Fixing loading problem

+ ImHex Pattern Code
This commit is contained in:
n0ffie 2025-03-18 21:55:08 +01:00
parent 72d1bf3bfb
commit 37a249dc62
9 changed files with 179 additions and 41 deletions

View file

@ -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;
}