mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-22 15:27:10 +02:00
Revert "Structural and Memory Safety Improvements, Analyzer Cleanup (ryubing/ryujinx!47)"
This reverts merge request !47
This commit is contained in:
parent
fc8b92e2de
commit
3437eedff4
307 changed files with 1245 additions and 1016 deletions
|
@ -18,11 +18,11 @@ namespace Ryujinx.HLE
|
|||
{
|
||||
private const ulong GiB = 1024 * 1024 * 1024;
|
||||
|
||||
#pragma warning disable IDE0055 // Disable formatting
|
||||
public static MemoryArrange ToKernelMemoryArrange(this MemoryConfiguration configuration)
|
||||
{
|
||||
return configuration switch
|
||||
{
|
||||
#pragma warning disable IDE0055 // Disable formatting
|
||||
MemoryConfiguration.MemoryConfiguration4GiB => MemoryArrange.MemoryArrange4GiB,
|
||||
MemoryConfiguration.MemoryConfiguration4GiBAppletDev => MemoryArrange.MemoryArrange4GiBAppletDev,
|
||||
MemoryConfiguration.MemoryConfiguration4GiBSystemDev => MemoryArrange.MemoryArrange4GiBSystemDev,
|
||||
|
@ -31,7 +31,6 @@ namespace Ryujinx.HLE
|
|||
MemoryConfiguration.MemoryConfiguration8GiB => MemoryArrange.MemoryArrange8GiB,
|
||||
MemoryConfiguration.MemoryConfiguration12GiB => MemoryArrange.MemoryArrange12GiB,
|
||||
_ => throw new AggregateException($"Invalid memory configuration \"{configuration}\"."),
|
||||
#pragma warning restore IDE0055
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -39,7 +38,6 @@ namespace Ryujinx.HLE
|
|||
{
|
||||
return configuration switch
|
||||
{
|
||||
#pragma warning disable IDE0055 // Disable formatting
|
||||
MemoryConfiguration.MemoryConfiguration4GiB or
|
||||
MemoryConfiguration.MemoryConfiguration4GiBAppletDev or
|
||||
MemoryConfiguration.MemoryConfiguration4GiBSystemDev => MemorySize.MemorySize4GiB,
|
||||
|
@ -48,7 +46,6 @@ namespace Ryujinx.HLE
|
|||
MemoryConfiguration.MemoryConfiguration8GiB => MemorySize.MemorySize8GiB,
|
||||
MemoryConfiguration.MemoryConfiguration12GiB => MemorySize.MemorySize12GiB,
|
||||
_ => throw new AggregateException($"Invalid memory configuration \"{configuration}\"."),
|
||||
#pragma warning restore IDE0055
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -56,7 +53,6 @@ namespace Ryujinx.HLE
|
|||
{
|
||||
return configuration switch
|
||||
{
|
||||
#pragma warning disable IDE0055 // Disable formatting
|
||||
MemoryConfiguration.MemoryConfiguration4GiB or
|
||||
MemoryConfiguration.MemoryConfiguration4GiBAppletDev or
|
||||
MemoryConfiguration.MemoryConfiguration4GiBSystemDev => 4 * GiB,
|
||||
|
@ -65,8 +61,8 @@ namespace Ryujinx.HLE
|
|||
MemoryConfiguration.MemoryConfiguration8GiB => 8 * GiB,
|
||||
MemoryConfiguration.MemoryConfiguration12GiB => 12 * GiB,
|
||||
_ => throw new AggregateException($"Invalid memory configuration \"{configuration}\"."),
|
||||
#pragma warning restore IDE0055
|
||||
};
|
||||
}
|
||||
#pragma warning restore IDE0055
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue