mirror of https://github.com/PCSX2/pcsx2.git
Counters: Make the code behavior more explicit
CID 168623 (#1 of 1): Missing break in switch (MISSING_BREAK)unterminated_case: The case for value GS_VideoMode::Unknown is not terminated by a 'break' statement.
This commit is contained in:
parent
de32691b4e
commit
7e5bca3dfd
|
@ -335,14 +335,13 @@ u32 UpdateVSyncRate()
|
|||
scanlines = SCANLINES_TOTAL_NTSC;
|
||||
break;
|
||||
|
||||
// Falls through to unknown when unidentified mode parameter of SetGsCrt is detected.
|
||||
case GS_VideoMode::Unknown:
|
||||
default:
|
||||
// Falls through to default when unidentified mode parameter of SetGsCrt is detected.
|
||||
// For Release builds, keep using the NTSC timing values when unknown video mode is detected.
|
||||
// Assert will be triggered for debug/dev builds.
|
||||
scanlines = SCANLINES_TOTAL_NTSC;
|
||||
Console.Error("PCSX2-Counters: Unknown video mode detected");
|
||||
|
||||
default:
|
||||
pxAssertDev(false , "Unknown video mode detected via SetGsCrt");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue