mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
add '--stdin-cmd' command line flag
This commit is contained in:
parent
7c0772b5b6
commit
b200d38e48
4 changed files with 10 additions and 2 deletions
|
|
@ -6,6 +6,7 @@
|
|||
struct CoreParameters {
|
||||
bool headless = false;
|
||||
bool testMode = false;
|
||||
bool stdinCommands = false;
|
||||
std::filesystem::path resFolder = "res";
|
||||
std::filesystem::path userFolder = ".";
|
||||
std::filesystem::path scriptFile;
|
||||
|
|
|
|||
|
|
@ -192,8 +192,9 @@ void Engine::initialize(CoreParameters coreParameters) {
|
|||
if (!params.headless) {
|
||||
project->loadProjectClientScript();
|
||||
}
|
||||
|
||||
start_stdin_reader(*cmd);
|
||||
if (params.stdinCommands) {
|
||||
start_stdin_reader(*cmd);
|
||||
}
|
||||
}
|
||||
|
||||
void Engine::loadSettings() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue