App/BIOS: Clean up warnings

This commit is contained in:
refractionpcsx2 2022-04-16 02:25:42 +01:00
parent 9b97c157f2
commit cbb3134740
2 changed files with 3 additions and 3 deletions

View File

@ -467,7 +467,7 @@ bool Pcsx2App::OnInit()
{
g_Conf->Folders.RunELF = elfFile.GetPath();
sApp.SysExecute(Startup.CdvdSource, Startup.ElfFile);
if (Startup.ElfFile.Find(' ') == NULL)
if (Startup.ElfFile.Find(' ') == -1)
EmuConfig.CurrentGameArgs = StringUtil::wxStringToUTF8String(Startup.GameLaunchArgs);
}
}
@ -479,7 +479,7 @@ bool Pcsx2App::OnInit()
// FIXME: ElfFile is an irx it will crash
sApp.SysExecute(Startup.CdvdSource, Startup.ElfFile);
if (Startup.ElfFile.Find(' ') == NULL)
if (Startup.ElfFile.Find(' ') == -1)
EmuConfig.CurrentGameArgs = StringUtil::wxStringToUTF8String(Startup.GameLaunchArgs);
}
}

View File

@ -102,7 +102,7 @@ static bool LoadBiosVersion(std::FILE* fp, u32& version, std::string& descriptio
// clang-format on
}
if (region >= 0 && region <= 7)
if (region <= 7)
{
zone = BiosZoneStrings[region];
}