More conversion

This commit is contained in:
iikorni
2026-08-29 19:17:46 -05:00
parent 0404d430dc
commit 70e5c02355
72 changed files with 13308 additions and 14309 deletions
+7 -7
View File
@@ -221,7 +221,7 @@ static void CD_f (void)
const char *command;
int ret, n;
if (Cmd_Argc() < 2)
if (command::argc() < 2)
{
Con_Printf("commands:");
Con_Printf("on, off, reset, remap, \n");
@@ -230,7 +230,7 @@ static void CD_f (void)
return;
}
command = Cmd_Argv (1);
command = command::argv (1)->c_str();
if (q_strcasecmp(command, "on") == 0)
{
@@ -259,7 +259,7 @@ static void CD_f (void)
if (q_strcasecmp(command, "remap") == 0)
{
ret = Cmd_Argc() - 2;
ret = command::argc() - 2;
if (ret <= 0)
{
for (n = 1; n < 100; n++)
@@ -268,7 +268,7 @@ static void CD_f (void)
return;
}
for (n = 1; n <= ret; n++)
remap[n] = atoi(Cmd_Argv (n + 1));
remap[n] = atoi(command::argv (n + 1)->c_str());
return;
}
@@ -284,7 +284,7 @@ static void CD_f (void)
if (q_strcasecmp(command, "play") == 0)
{
n = atoi(Cmd_Argv (2));
n = atoi(command::argv (2)->c_str());
if (n == 0)
n = 1;
CDAudio_Play((byte)n, false);
@@ -293,7 +293,7 @@ static void CD_f (void)
if (q_strcasecmp(command, "loop") == 0)
{
CDAudio_Play((byte)atoi(Cmd_Argv (2)), true);
CDAudio_Play((byte)atoi(command::argv (2)->c_str()), true);
return;
}
@@ -564,7 +564,7 @@ int CDAudio_Init(void)
cdValid = false;
}
Cmd_AddCommand ("cd", CD_f);
command::add ("cd", CD_f);
hw_vol_works = CD_GetVolume (NULL); /* no SDL support at present. */
if (hw_vol_works)