Update units of memory from decimal to binary prefixes (#3716)
`MB` and `GB` can either be interpreted as having base-10 units, or base-2. `MiB` and `GiB` removes this discrepancy so that units of memory are always interpreted using base-2 units.
This commit is contained in:
@ -67,17 +67,17 @@ namespace Ryujinx.HLE.HOS.Services.Spl
|
||||
configValue = 0;
|
||||
break;
|
||||
case ConfigItem.DramId:
|
||||
if (memorySize == MemorySize.MemorySize8GB)
|
||||
if (memorySize == MemorySize.MemorySize8GiB)
|
||||
{
|
||||
configValue = (ulong)DramId.IowaSamsung8GB;
|
||||
configValue = (ulong)DramId.IowaSamsung8GiB;
|
||||
}
|
||||
else if (memorySize == MemorySize.MemorySize6GB)
|
||||
else if (memorySize == MemorySize.MemorySize6GiB)
|
||||
{
|
||||
configValue = (ulong)DramId.IcosaSamsung6GB;
|
||||
configValue = (ulong)DramId.IcosaSamsung6GiB;
|
||||
}
|
||||
else
|
||||
{
|
||||
configValue = (ulong)DramId.IcosaSamsung4GB;
|
||||
configValue = (ulong)DramId.IcosaSamsung4GiB;
|
||||
}
|
||||
break;
|
||||
case ConfigItem.SecurityEngineInterruptNumber:
|
||||
|
@ -2,34 +2,34 @@
|
||||
{
|
||||
enum DramId
|
||||
{
|
||||
IcosaSamsung4GB,
|
||||
IcosaHynix4GB,
|
||||
IcosaMicron4GB,
|
||||
IowaHynix1y4GB,
|
||||
IcosaSamsung6GB,
|
||||
HoagHynix1y4GB,
|
||||
AulaHynix1y4GB,
|
||||
IowaX1X2Samsung4GB,
|
||||
IowaSansung4GB,
|
||||
IowaSamsung8GB,
|
||||
IowaHynix4GB,
|
||||
IowaMicron4GB,
|
||||
HoagSamsung4GB,
|
||||
HoagSamsung8GB,
|
||||
HoagHynix4GB,
|
||||
HoagMicron4GB,
|
||||
IowaSamsung4GBY,
|
||||
IowaSamsung1y4GBX,
|
||||
IowaSamsung1y8GBX,
|
||||
HoagSamsung1y4GBX,
|
||||
IowaSamsung1y4GBY,
|
||||
IowaSamsung1y8GBY,
|
||||
AulaSamsung1y4GB,
|
||||
HoagSamsung1y8GBX,
|
||||
AulaSamsung1y4GBX,
|
||||
IowaMicron1y4GB,
|
||||
HoagMicron1y4GB,
|
||||
AulaMicron1y4GB,
|
||||
AulaSamsung1y8GBX
|
||||
IcosaSamsung4GiB,
|
||||
IcosaHynix4GiB,
|
||||
IcosaMicron4GiB,
|
||||
IowaHynix1y4GiB,
|
||||
IcosaSamsung6GiB,
|
||||
HoagHynix1y4GiB,
|
||||
AulaHynix1y4GiB,
|
||||
IowaX1X2Samsung4GiB,
|
||||
IowaSansung4GiB,
|
||||
IowaSamsung8GiB,
|
||||
IowaHynix4GiB,
|
||||
IowaMicron4GiB,
|
||||
HoagSamsung4GiB,
|
||||
HoagSamsung8GiB,
|
||||
HoagHynix4GiB,
|
||||
HoagMicron4GiB,
|
||||
IowaSamsung4GiBY,
|
||||
IowaSamsung1y4GiBX,
|
||||
IowaSamsung1y8GiBX,
|
||||
HoagSamsung1y4GiBX,
|
||||
IowaSamsung1y4GiBY,
|
||||
IowaSamsung1y8GiBY,
|
||||
AulaSamsung1y4GiB,
|
||||
HoagSamsung1y8GiBX,
|
||||
AulaSamsung1y4GiBX,
|
||||
IowaMicron1y4GiB,
|
||||
HoagMicron1y4GiB,
|
||||
AulaMicron1y4GiB,
|
||||
AulaSamsung1y8GiBX
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user