mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-30 00:49:16 +00:00
Structural and Memory Safety Improvements, Analyzer Cleanup (ryubing/ryujinx!47)
See merge request ryubing/ryujinx!47
This commit is contained in:
@@ -17,9 +17,7 @@ namespace Ryujinx.HLE.HOS.Services.Sdb.Pl
|
||||
// RequestLoad(u32)
|
||||
public ResultCode RequestLoad(ServiceCtx context)
|
||||
{
|
||||
#pragma warning disable IDE0059 // Remove unnecessary value assignment
|
||||
SharedFontType fontType = (SharedFontType)context.RequestData.ReadInt32();
|
||||
#pragma warning restore IDE0059
|
||||
_ = (SharedFontType)context.RequestData.ReadInt32(); // font type
|
||||
|
||||
// We don't need to do anything here because we do lazy initialization
|
||||
// on SharedFontManager (the font is loaded when necessary).
|
||||
@@ -30,9 +28,7 @@ namespace Ryujinx.HLE.HOS.Services.Sdb.Pl
|
||||
// GetLoadState(u32) -> u32
|
||||
public ResultCode GetLoadState(ServiceCtx context)
|
||||
{
|
||||
#pragma warning disable IDE0059 // Remove unnecessary value assignment
|
||||
SharedFontType fontType = (SharedFontType)context.RequestData.ReadInt32();
|
||||
#pragma warning restore IDE0059
|
||||
_ = (SharedFontType)context.RequestData.ReadInt32(); // font type
|
||||
|
||||
// 1 (true) indicates that the font is already loaded.
|
||||
// All fonts are already loaded.
|
||||
@@ -86,9 +82,8 @@ namespace Ryujinx.HLE.HOS.Services.Sdb.Pl
|
||||
// GetSharedFontInOrderOfPriority(bytes<8, 1>) -> (u8, u32, buffer<unknown, 6>, buffer<unknown, 6>, buffer<unknown, 6>)
|
||||
public ResultCode GetSharedFontInOrderOfPriority(ServiceCtx context)
|
||||
{
|
||||
#pragma warning disable IDE0059 // Remove unnecessary value assignment
|
||||
long languageCode = context.RequestData.ReadInt64();
|
||||
#pragma warning restore IDE0059
|
||||
_ = context.RequestData.ReadInt64(); // language code
|
||||
|
||||
int loadedCount = 0;
|
||||
|
||||
for (SharedFontType type = 0; type < SharedFontType.Count; type++)
|
||||
|
||||
Reference in New Issue
Block a user