Fix some bugs and warnings from a pass of static analysis

This commit is contained in:
Henrik Rydgård committed 2026-01-29 17:41:54 +01:00
1 parent 722178e205
commit d6ebfed432
25 files changed
+72 -49

No files matched your search

+2 -1
View File
@@ -287,7 +287,7 @@ void GameButton::Draw(UIContext &dc) {
switch (ginfo->fileType) {
case IdentifiedFileType::UNKNOWN_ELF: imageIcon = ImageID("I_DEBUGGER"); break;
case IdentifiedFileType::PPSSPP_GE_DUMP: imageIcon = ImageID("I_DISPLAY"); break;
case IdentifiedFileType::PSX_ISO: imageIcon = ImageID("I_PSX_ISO"); break;
case IdentifiedFileType::PSX_ISO:
case IdentifiedFileType::PSP_PS1_PBP: imageIcon = ImageID("I_PSX_ISO"); break;
case IdentifiedFileType::PS2_ISO: imageIcon = ImageID("I_PS2_ISO"); break;
case IdentifiedFileType::PS3_ISO: imageIcon = ImageID("I_PS3_ISO"); break;
@@ -296,6 +296,7 @@ void GameButton::Draw(UIContext &dc) {
case IdentifiedFileType::PPSSPP_SAVESTATE:
case IdentifiedFileType::ERROR_IDENTIFYING:
case IdentifiedFileType::UNKNOWN_BIN: imageIcon = ImageID("I_FILE"); break;
default: break;
}
if (imageIcon.isValid()) {