mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Cleanup: fix an incorrect variable name.
For consistancy.
This commit is contained in:
@ -320,22 +320,22 @@ void DoState(PointerWrap &p)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for (auto& dev : g_FdMap)
|
for (auto& descriptor : g_FdMap)
|
||||||
{
|
{
|
||||||
u32 exists = dev ? 1 : 0;
|
u32 exists = descriptor ? 1 : 0;
|
||||||
p.Do(exists);
|
p.Do(exists);
|
||||||
if (exists)
|
if (exists)
|
||||||
{
|
{
|
||||||
u32 isHw = dev->IsHardware() ? 1 : 0;
|
u32 isHw = descriptor->IsHardware() ? 1 : 0;
|
||||||
p.Do(isHw);
|
p.Do(isHw);
|
||||||
if (isHw)
|
if (isHw)
|
||||||
{
|
{
|
||||||
u32 hwId = dev->GetDeviceID();
|
u32 hwId = descriptor->GetDeviceID();
|
||||||
p.Do(hwId);
|
p.Do(hwId);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dev->DoState(p);
|
descriptor->DoState(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user