Skip to content
Snippets Groups Projects
Commit 2d3f45de authored by Lactozilla's avatar Lactozilla :speech_balloon:
Browse files

Merge branch 'renderswitch' of https://git.magicalgirl.moe/STJr/SRB2 into renderswitch

parents eca5be52 76a1a80d
No related branches found
No related tags found
2 merge requests!734Rebase Keycodes only branch.,!550Renderer switching
......@@ -106,7 +106,7 @@ static vsbuf_t com_text; // variable sized buffer
*
* \param s The text.
* \param np Optionally a pointer to fill with the new string length.
* \return The new length.
* \return The text.
* \sa COM_ExecuteString
*/
static char *
......@@ -427,16 +427,17 @@ static void COM_TokenizeString(char *ptext)
com_argc = 0;
com_args = NULL;
com_flags = 0;
while (com_argc < MAX_ARGS)
if (ptext[0] == '\033')
{
if (ptext[0] == '\033')
{
com_flags = (unsigned)ptext[1];
ptext += 2;
}
com_flags = (unsigned)ptext[1];
ptext += 2;
}
else
com_flags = 0;
while (com_argc < MAX_ARGS)
{
// Skip whitespace up to a newline.
while (*ptext != '\0' && *ptext <= ' ' && *ptext != '\n')
ptext++;
......
......@@ -65,7 +65,7 @@ consvar_t cv_renderview = {"renderview", "On", 0, CV_OnOff, NULL, 0, NULL, NULL,
static void SCR_ActuallyChangeRenderer(void);
static CV_PossibleValue_t cv_renderer_t[] = {{1, "Software"}, {2, "OpenGL"}, {0, NULL}};
consvar_t cv_renderer = {"renderer", "Software", CV_NOLUA|CV_CALL, cv_renderer_t, SCR_ChangeRenderer, 0, NULL, NULL, 0, 0, NULL};
consvar_t cv_renderer = {"renderer", "Software", CV_SAVE|CV_NOLUA|CV_CALL, cv_renderer_t, SCR_ChangeRenderer, 0, NULL, NULL, 0, 0, NULL};
static void SCR_ChangeFullscreen(void);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment