mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
refactor
This commit is contained in:
parent
61b73bfabd
commit
3e01a399f9
8 changed files with 43 additions and 52 deletions
|
|
@ -1,6 +1,4 @@
|
|||
#include "engine.hpp"
|
||||
#include "settings.hpp"
|
||||
#include "files/settings_io.hpp"
|
||||
#include "files/engine_paths.hpp"
|
||||
#include "util/platform.hpp"
|
||||
#include "util/command_line.hpp"
|
||||
|
|
@ -19,12 +17,7 @@ int main(int argc, char** argv) {
|
|||
|
||||
platform::configure_encoding();
|
||||
try {
|
||||
EngineSettings settings;
|
||||
SettingsHandler handler(settings);
|
||||
|
||||
Engine engine(settings, handler, &paths);
|
||||
|
||||
engine.mainloop();
|
||||
Engine(paths).mainloop();
|
||||
}
|
||||
catch (const initialize_error& err) {
|
||||
logger.error() << "could not to initialize engine\n" << err.what();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue