when a resource is not found, an exceptions is thrown

This commit is contained in:
arthur.jamet
2021-06-17 11:17:18 +02:00
parent 5a948bca46
commit 1f1379a5a5
11 changed files with 67 additions and 16 deletions
+2 -8
View File
@@ -145,13 +145,7 @@ namespace BBM
Runner::enableRaylib(wal);
Runner::loadScenes();
wal.changeScene(Runner::gameState._loadedScenes[GameState::SceneID::SplashScreen]);
try {
wal.run<GameState>(Runner::updateState, Runner::gameState);
return 0;
} catch (const std::exception &ex) {
std::cerr << ex.what() << std::endl;
return 1;
}
wal.run<GameState>(Runner::updateState, Runner::gameState);
return 0;
}
}