mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add '--script', '--version' command line arguments
This commit is contained in:
parent
48d94036fd
commit
fa1646a9bd
7 changed files with 48 additions and 19 deletions
|
|
@ -36,7 +36,7 @@
|
|||
#include "window/Window.hpp"
|
||||
#include "world/Level.hpp"
|
||||
#include "Mainloop.hpp"
|
||||
#include "TestMainloop.hpp"
|
||||
#include "ServerMainloop.hpp"
|
||||
|
||||
#include <iostream>
|
||||
#include <assert.h>
|
||||
|
|
@ -173,7 +173,7 @@ void Engine::saveScreenshot() {
|
|||
|
||||
void Engine::run() {
|
||||
if (params.headless) {
|
||||
TestMainloop(*this).run();
|
||||
ServerMainloop(*this).run();
|
||||
} else {
|
||||
Mainloop(*this).run();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue