Skip to content

Commit

Permalink
xrSASH: Implement renderer command-line parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Dec 12, 2015
1 parent e4c249b commit fde22e2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/xrEngine/xrSASH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,15 @@ void xrSASH::TryInitEngine(bool bNoRun)
xr_strcpy(Console->ConfigFile, c_name);
}

if (strstr(Core.Params, "-r2a"))
if (strstr(Core.Params, "-gl"))
Console->Execute("renderer renderer_gl");
else if (strstr(Core.Params, "-r4"))
Console->Execute("renderer renderer_r4");
else if (strstr(Core.Params, "-r3"))
Console->Execute("renderer renderer_r3");
else if (strstr(Core.Params, "-r2.5"))
Console->Execute("renderer renderer_r2.5");
else if (strstr(Core.Params, "-r2a"))
Console->Execute("renderer renderer_r2a");
else if (strstr(Core.Params, "-r2"))
Console->Execute("renderer renderer_r2");
Expand Down

0 comments on commit fde22e2

Please sign in to comment.