mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
refactor
This commit is contained in:
parent
da10151d5a
commit
02554e469a
6 changed files with 67 additions and 35 deletions
|
|
@ -21,11 +21,15 @@ int main(int argc, char** argv) {
|
|||
|
||||
debug::Logger::init(coreParameters.userFolder.string()+"/latest.log");
|
||||
platform::configure_encoding();
|
||||
|
||||
auto& engine = Engine::getInstance();
|
||||
try {
|
||||
Engine(std::move(coreParameters)).run();
|
||||
engine.initialize(std::move(coreParameters));
|
||||
engine.run();
|
||||
} catch (const initialize_error& err) {
|
||||
logger.error() << "could not to initialize engine\n" << err.what();
|
||||
}
|
||||
Engine::terminate();
|
||||
#if defined(NDEBUG) and defined(_WIN32)
|
||||
catch (const std::exception& err) {
|
||||
logger.error() << "uncaught exception: " << err.what();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue