Skip to content

Commit

Permalink
xrEngine/x_ray.cpp: move -fsltx key check lower
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed May 11, 2024
1 parent 26c6f73 commit 606d5fb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/xrEngine/x_ray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,14 +279,6 @@ CApplication::CApplication(pcstr commandLine, GameModule* game)
ShowSplash(topmost);
}

pcstr fsltx = "-fsltx ";
string_path fsgame = "";
if (strstr(commandLine, fsltx))
{
const size_t sz = xr_strlen(fsltx);
sscanf(strstr(commandLine, fsltx) + sz, "%[^ ] ", fsgame);
}

const auto& inputTask = TaskManager::AddTask([](Task&, void*)
{
const bool captureInput = !strstr(Core.Params, "-i");
Expand All @@ -303,6 +295,14 @@ CApplication::CApplication(pcstr commandLine, GameModule* game)
Engine.External.CreateRendererList();
});

pcstr fsltx = "-fsltx ";
string_path fsgame = "";
if (strstr(commandLine, fsltx))
{
const size_t sz = xr_strlen(fsltx);
sscanf(strstr(commandLine, fsltx) + sz, "%[^ ] ", fsgame);
}

Core.Initialize("OpenXRay", commandLine, true, *fsgame ? fsgame : nullptr);

InitSettings();
Expand Down

0 comments on commit 606d5fb

Please sign in to comment.