mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-04 02:36:31 +00:00
Merge pull request #186 from AnonymusRaccoon/safe_resource_loading
when a resource is not found, an exceptions is thrown
This commit is contained in:
@@ -148,13 +148,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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user