Fix formatting on ISettingsServer

This commit is contained in:
gdkchan 2018-07-03 21:45:12 -03:00
parent 9cbf908cf5
commit c206239d28

View file

@ -28,10 +28,13 @@ namespace Ryujinx.HLE.OsHle.Services.Set
} }
public static long GetAvailableLanguageCodes(ServiceCtx Context) public static long GetAvailableLanguageCodes(ServiceCtx Context)
{ {
GetAvailableLanguagesCodesMethod(Context, Context.Request.RecvListBuff[0].Position, Context.Request.RecvListBuff[0].Size); GetAvailableLanguagesCodesImpl(
Context,
return 0; Context.Request.RecvListBuff[0].Position,
Context.Request.RecvListBuff[0].Size);
return 0;
} }
public static long GetAvailableLanguageCodeCount(ServiceCtx Context) public static long GetAvailableLanguageCodeCount(ServiceCtx Context)
@ -40,16 +43,19 @@ namespace Ryujinx.HLE.OsHle.Services.Set
return 0; return 0;
} }
public static long GetAvailableLanguageCodes2(ServiceCtx Context) public static long GetAvailableLanguageCodes2(ServiceCtx Context)
{ {
GetAvailableLanguagesCodesMethod(Context, Context.Request.ReceiveBuff[0].Position, Context.Request.ReceiveBuff[0].Size); GetAvailableLanguagesCodesImpl(
Context,
return 0; 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); int Count = (int)(Size / 8);
if (Count > SystemStateMgr.LanguageCodes.Length) if (Count > SystemStateMgr.LanguageCodes.Length)
@ -65,8 +71,8 @@ namespace Ryujinx.HLE.OsHle.Services.Set
} }
Context.ResponseData.Write(Count); Context.ResponseData.Write(Count);
return 0; return 0;
} }
} }
} }