mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add '--dbg-server' command-line argument & add debugging server draft
This commit is contained in:
parent
2895cff5f2
commit
80cd187c6f
7 changed files with 142 additions and 5 deletions
|
|
@ -25,7 +25,7 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
std::signal(SIGTERM, sigterm_handler);
|
||||
|
||||
debug::Logger::init(coreParameters.userFolder.string()+"/latest.log");
|
||||
debug::Logger::init(coreParameters.userFolder.string() + "/latest.log");
|
||||
platform::configure_encoding();
|
||||
|
||||
auto& engine = Engine::getInstance();
|
||||
|
|
@ -33,7 +33,8 @@ int main(int argc, char** argv) {
|
|||
engine.initialize(std::move(coreParameters));
|
||||
engine.run();
|
||||
} catch (const initialize_error& err) {
|
||||
logger.error() << "could not to initialize engine\n" << err.what();
|
||||
logger.error() << err.what();
|
||||
logger.error() << "could not to initialize engine";
|
||||
}
|
||||
#if defined(NDEBUG) and defined(_WIN32)
|
||||
catch (const std::exception& err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue