mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
Gekko: Make register constructors explicit where applicable
Prevents implicit conversions to types and requires explicitly specifying them in order to construct instances of them. Given these are used within emulation code directly, being explicit is always better than implicit.
This commit is contained in:
@ -1170,9 +1170,9 @@ static void UpdateBATs(BatTable& bat_table, u32 base_spr)
|
||||
// TODO: Check how hardware reacts to invalid BATs (bad mask etc).
|
||||
for (int i = 0; i < 4; ++i)
|
||||
{
|
||||
u32 spr = base_spr + i * 2;
|
||||
UReg_BAT_Up batu = PowerPC::ppcState.spr[spr];
|
||||
UReg_BAT_Lo batl = PowerPC::ppcState.spr[spr + 1];
|
||||
const u32 spr = base_spr + i * 2;
|
||||
const UReg_BAT_Up batu{ppcState.spr[spr]};
|
||||
const UReg_BAT_Lo batl{ppcState.spr[spr + 1]};
|
||||
if (batu.VS == 0 && batu.VP == 0)
|
||||
continue;
|
||||
|
||||
|
Reference in New Issue
Block a user