updated command line help

This commit is contained in:
Ian Curtis 2018-09-14 20:31:34 +00:00
parent b5f9ad9651
commit a7e851d578
4 changed files with 8 additions and 7 deletions

View file

@ -609,7 +609,7 @@ bool CInputs::ConfigureInputs(const Game *game, unsigned dispX, unsigned dispY,
void CInputs::CalibrateJoysticks()
{
unsigned numJoys = m_system->GetNumJoysticks();
int numJoys = m_system->GetNumJoysticks();
if (numJoys == 0 || numJoys == ANY_JOYSTICK)
puts("No joysticks attached to calibrate!");
else
@ -617,10 +617,10 @@ void CInputs::CalibrateJoysticks()
puts("Choose joystick to calibrate (or press Esc to cancel):");
if (numJoys > 10)
numJoys = 10;
for (int joyNum = 0; joyNum < numJoys; joyNum++)
for (int i = 0; i < numJoys; i++)
{
const JoyDetails *joyDetails = m_system->GetJoyDetails(joyNum);
unsigned dispNum = (joyNum == 9 ? 0 : joyNum + 1);
const JoyDetails *joyDetails = m_system->GetJoyDetails(i);
unsigned dispNum = (i == 9 ? 0 : i + 1);
printf(" %u: %s\n", dispNum, joyDetails->name);
}
@ -632,7 +632,7 @@ void CInputs::CalibrateJoysticks()
char c = mapping[4];
if (!isdigit(c))
continue;
unsigned joyNum = c - '0';
int joyNum = c - '0';
joyNum = (joyNum == 0 ? 9 : joyNum - 1);
if (joyNum >= numJoys)
continue;

View file

@ -1406,6 +1406,7 @@ static void Help(void)
puts(" -crosshairs=<n> Crosshairs configuration for gun games:");
puts(" 0=none [Default], 1=P1 only, 2=P2 only, 3=P1 & P2");
puts(" -new3d New 3D engine by Ian Curtis [Default]");
puts(" -quad-rendering Enable proper quad rendering");
puts(" -legacy3d Legacy 3D engine (faster but less accurate)");
puts(" -multi-texture Use 8 texture maps for decoding (legacy engine)");
puts(" -no-multi-texture Decode to single texture (legacy engine) [Default]");

View file

@ -369,7 +369,7 @@ int CSDLInputSystem::GetNumMice()
int CSDLInputSystem::GetNumJoysticks()
{
// Return number of joysticks found
return m_joysticks.size();
return (int)m_joysticks.size();
}
const KeyDetails *CSDLInputSystem::GetKeyDetails(int kbdNum)

View file

@ -1576,7 +1576,7 @@ bool CDirectInputSystem::InitializeSystem()
if (m_useRawInput)
{
// Get screen resolution (needed for absolute mouse devices)
DEVMODEA settings;
DEVMODEA settings = { 0 };
if (!EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &settings))
{
ErrorLog("Unable to read current display settings\n");