Replace boolean constants with boolean literals

This commit is contained in:
Dr. Dystopia 2024-07-28 22:28:58 +02:00
parent 5af0ae25e6
commit 309df9ed5b
4 changed files with 21 additions and 21 deletions

View File

@ -15,7 +15,7 @@ const Info<u32> SYSCONF_LANGUAGE{{System::SYSCONF, "IPL", "LNG"},
const Info<u32> SYSCONF_COUNTRY{{System::SYSCONF, "IPL", "SADR"}, GetDefaultCountry()};
const Info<bool> SYSCONF_WIDESCREEN{{System::SYSCONF, "IPL", "AR"}, true};
const Info<bool> SYSCONF_PROGRESSIVE_SCAN{{System::SYSCONF, "IPL", "PGS"}, true};
const Info<bool> SYSCONF_PAL60{{System::SYSCONF, "IPL", "E60"}, 0x01};
const Info<bool> SYSCONF_PAL60{{System::SYSCONF, "IPL", "E60"}, true};
const Info<u32> SYSCONF_SOUND_MODE{{System::SYSCONF, "IPL", "SND"}, 0x01};
// SYSCONF.BT

View File

@ -719,7 +719,7 @@ void MotionPlus::ReversePassthroughModifications(PassthroughMode mode, u8* data)
// This is an overwritten unused button bit on the Classic Controller.
// Note it's a significant bit on the DJ Hero Turntable. (passthrough not feasible)
Common::SetBit<0>(data[4], 1);
Common::SetBit<0>(data[4], true);
}
}

View File

@ -290,7 +290,7 @@ void HostFileSystem::DoStateRead(PointerWrap& p, std::string start_directory_pat
File::CreateDir(path);
// now restore from the stream
while (1)
while (true)
{
char type = 0;
p.Do(type);

View File

@ -316,15 +316,15 @@ TEST_P(VertexLoaderSpeedTest, TexCoordSingleElement)
TEST_F(VertexLoaderTest, LargeFloatVertexSpeed)
{
// Enables most attributes in floating point indexed mode to test speed.
m_vtx_desc.low.PosMatIdx = 1;
m_vtx_desc.low.Tex0MatIdx = 1;
m_vtx_desc.low.Tex1MatIdx = 1;
m_vtx_desc.low.Tex2MatIdx = 1;
m_vtx_desc.low.Tex3MatIdx = 1;
m_vtx_desc.low.Tex4MatIdx = 1;
m_vtx_desc.low.Tex5MatIdx = 1;
m_vtx_desc.low.Tex6MatIdx = 1;
m_vtx_desc.low.Tex7MatIdx = 1;
m_vtx_desc.low.PosMatIdx = true;
m_vtx_desc.low.Tex0MatIdx = true;
m_vtx_desc.low.Tex1MatIdx = true;
m_vtx_desc.low.Tex2MatIdx = true;
m_vtx_desc.low.Tex3MatIdx = true;
m_vtx_desc.low.Tex4MatIdx = true;
m_vtx_desc.low.Tex5MatIdx = true;
m_vtx_desc.low.Tex6MatIdx = true;
m_vtx_desc.low.Tex7MatIdx = true;
m_vtx_desc.low.Position = VertexComponentFormat::Index16;
m_vtx_desc.low.Normal = VertexComponentFormat::Index16;
m_vtx_desc.low.Color0 = VertexComponentFormat::Index16;
@ -379,15 +379,15 @@ TEST_F(VertexLoaderTest, LargeFloatVertexSpeed)
TEST_F(VertexLoaderTest, DirectAllComponents)
{
m_vtx_desc.low.PosMatIdx = 1;
m_vtx_desc.low.Tex0MatIdx = 1;
m_vtx_desc.low.Tex1MatIdx = 1;
m_vtx_desc.low.Tex2MatIdx = 1;
m_vtx_desc.low.Tex3MatIdx = 1;
m_vtx_desc.low.Tex4MatIdx = 1;
m_vtx_desc.low.Tex5MatIdx = 1;
m_vtx_desc.low.Tex6MatIdx = 1;
m_vtx_desc.low.Tex7MatIdx = 1;
m_vtx_desc.low.PosMatIdx = true;
m_vtx_desc.low.Tex0MatIdx = true;
m_vtx_desc.low.Tex1MatIdx = true;
m_vtx_desc.low.Tex2MatIdx = true;
m_vtx_desc.low.Tex3MatIdx = true;
m_vtx_desc.low.Tex4MatIdx = true;
m_vtx_desc.low.Tex5MatIdx = true;
m_vtx_desc.low.Tex6MatIdx = true;
m_vtx_desc.low.Tex7MatIdx = true;
m_vtx_desc.low.Position = VertexComponentFormat::Direct;
m_vtx_desc.low.Normal = VertexComponentFormat::Direct;
m_vtx_desc.low.Color0 = VertexComponentFormat::Direct;