add '--script', '--version' command line arguments

This commit is contained in:
MihailRis
2024-12-18 00:48:29 +03:00
parent 48d94036fd
commit fa1646a9bd
7 changed files with 48 additions and 19 deletions
+2 -2
View File
@@ -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();
}