mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-09 00:28:52 +02:00
Assign DRAM IDs and Hardware Types to 10GiB-12GiB sizes
* Fix incorrect Hardware Type for 8GiB-12GiB DRAM sizes
This commit is contained in:
@@ -69,24 +69,27 @@ namespace Ryujinx.HLE.HOS.Services.Spl
|
|||||||
configValue = 0;
|
configValue = 0;
|
||||||
break;
|
break;
|
||||||
case ConfigItem.DramId:
|
case ConfigItem.DramId:
|
||||||
if (memorySize == MemorySize.MemorySize8GiB)
|
configValue = memorySize switch
|
||||||
{
|
{
|
||||||
configValue = (ulong)DramId.IowaSamsung8GiB;
|
MemorySize.MemorySize6GiB => (ulong)DramId.IcosaSamsung6GiB,
|
||||||
}
|
MemorySize.MemorySize8GiB => (ulong)DramId.IowaSamsung8GiB,
|
||||||
else if (memorySize == MemorySize.MemorySize6GiB)
|
MemorySize.MemorySize10GiB => (ulong)DramId.IowaSamsung10GiB,
|
||||||
{
|
MemorySize.MemorySize12GiB => (ulong)DramId.IowaSamsung12GiB,
|
||||||
configValue = (ulong)DramId.IcosaSamsung6GiB;
|
_ => (ulong)DramId.IcosaSamsung4GiB
|
||||||
}
|
};
|
||||||
else
|
|
||||||
{
|
|
||||||
configValue = (ulong)DramId.IcosaSamsung4GiB;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case ConfigItem.SecurityEngineInterruptNumber:
|
case ConfigItem.SecurityEngineInterruptNumber:
|
||||||
case ConfigItem.FuseVersion:
|
case ConfigItem.FuseVersion:
|
||||||
return SmcResult.NotImplemented;
|
return SmcResult.NotImplemented;
|
||||||
case ConfigItem.HardwareType:
|
case ConfigItem.HardwareType:
|
||||||
configValue = (ulong)HardwareType.Icosa;
|
configValue = memorySize switch
|
||||||
|
{
|
||||||
|
MemorySize.MemorySize6GiB => (ulong)HardwareType.Icosa,
|
||||||
|
MemorySize.MemorySize8GiB => (ulong)HardwareType.Iowa,
|
||||||
|
MemorySize.MemorySize10GiB => (ulong)HardwareType.Iowa,
|
||||||
|
MemorySize.MemorySize12GiB => (ulong)HardwareType.Iowa,
|
||||||
|
_ => (ulong)HardwareType.Icosa
|
||||||
|
};
|
||||||
break;
|
break;
|
||||||
case ConfigItem.HardwareState:
|
case ConfigItem.HardwareState:
|
||||||
configValue = (ulong)HardwareState.Production;
|
configValue = (ulong)HardwareState.Production;
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ namespace Ryujinx.HLE.HOS.Services.Spl.Types
|
|||||||
IowaX1X2Samsung4GiB,
|
IowaX1X2Samsung4GiB,
|
||||||
IowaSansung4GiB,
|
IowaSansung4GiB,
|
||||||
IowaSamsung8GiB,
|
IowaSamsung8GiB,
|
||||||
|
IowaSamsung10GiB,
|
||||||
|
IowaSamsung12GiB,
|
||||||
IowaHynix4GiB,
|
IowaHynix4GiB,
|
||||||
IowaMicron4GiB,
|
IowaMicron4GiB,
|
||||||
HoagSamsung4GiB,
|
HoagSamsung4GiB,
|
||||||
|
|||||||
Reference in New Issue
Block a user