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

@ -9,12 +9,19 @@ Game::Game(sf::RenderWindow& window) : window(window)
#include <iostream>
void Game::run()
{
#ifdef _DEBUG
std::cout << "Loading map... Version: " MAP_VERSION_STRING << std::endl;
auto start = std::chrono::system_clock::now();
#endif
auto err = map.load(ASSETS_PATH "/test.cymf");
#ifdef _DEBUG
auto end = std::chrono::system_clock::now();
auto milliseconds = std::chrono::duration_cast<std::chrono::microseconds>(end - start);
std::cout << "Loading took: " << milliseconds << std::endl;
#endif
if (err.code != 0)
{
std::cout << err.message << std::endl;