From c206239d28b33f6696b16639e35bf5c533de7cf9 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 3 Jul 2018 21:45:12 -0300 Subject: [PATCH] Fix formatting on ISettingsServer --- .../OsHle/Services/Set/ISettingsServer.cs | 34 +++++++++++-------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/Ryujinx.HLE/OsHle/Services/Set/ISettingsServer.cs b/Ryujinx.HLE/OsHle/Services/Set/ISettingsServer.cs index abab93822..5c4f82676 100644 --- a/Ryujinx.HLE/OsHle/Services/Set/ISettingsServer.cs +++ b/Ryujinx.HLE/OsHle/Services/Set/ISettingsServer.cs @@ -28,10 +28,13 @@ namespace Ryujinx.HLE.OsHle.Services.Set } public static long GetAvailableLanguageCodes(ServiceCtx Context) - { - GetAvailableLanguagesCodesMethod(Context, Context.Request.RecvListBuff[0].Position, Context.Request.RecvListBuff[0].Size); - - return 0; + { + GetAvailableLanguagesCodesImpl( + Context, + Context.Request.RecvListBuff[0].Position, + Context.Request.RecvListBuff[0].Size); + + return 0; } public static long GetAvailableLanguageCodeCount(ServiceCtx Context) @@ -40,16 +43,19 @@ namespace Ryujinx.HLE.OsHle.Services.Set return 0; } - + public static long GetAvailableLanguageCodes2(ServiceCtx Context) { - GetAvailableLanguagesCodesMethod(Context, Context.Request.ReceiveBuff[0].Position, Context.Request.ReceiveBuff[0].Size); - - return 0; + GetAvailableLanguagesCodesImpl( + Context, + Context.Request.ReceiveBuff[0].Position, + Context.Request.ReceiveBuff[0].Size); + + return 0; } - - public static long GetAvailableLanguagesCodesMethod(ServiceCtx Context, long Position, long Size) - { + + public static long GetAvailableLanguagesCodesImpl(ServiceCtx Context, long Position, long Size) + { int Count = (int)(Size / 8); if (Count > SystemStateMgr.LanguageCodes.Length) @@ -65,8 +71,8 @@ namespace Ryujinx.HLE.OsHle.Services.Set } Context.ResponseData.Write(Count); - - return 0; - } + + return 0; + } } }