Open Marat-Tanalin opened 1 year ago
Looks like it's not a bug, just weird code formatting, probably to keep the statements aligned. Notice that only the statement covered by the conditional pertains to it.
Yeah, the first line just explicitly contains the variable from the condition, but the other two lines might make sense depending on that variable too.
The others are always present, only serial
might be empty.
I'm hesitant to recommend putting braces around that serial condition because none of the rest of the conditions in that file have braces. Would simply moving those two lines of code to below the board and Memory output lines be ok?
Found suspicious code in bsnes/heuristics/game-boy.cpp#L277 that contains 3 lines indented, but not wrapped in a
{}
block, so only the first of them effectively depends on the condition:Not sure what this code does, but this might be a bug.