From 1f745c600fb4ce1cdf23ab066baf2bff2075c54f Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Sat, 1 Dec 2018 14:51:40 -0600 Subject: [PATCH] Initialized objects don't need an empty constructor --- Ryujinx.HLE/FileSystem/Content/ContentManager.cs | 2 +- Ryujinx.HLE/HOS/Font/SharedFontManager.cs | 2 +- Ryujinx.HLE/HOS/Kernel/SvcHandler.cs | 2 +- Ryujinx.HLE/HOS/Services/Acc/IAccountService.cs | 2 +- Ryujinx.HLE/HOS/Services/Acc/IManagerForApplication.cs | 2 +- Ryujinx.HLE/HOS/Services/Acc/IProfile.cs | 2 +- .../HOS/Services/Am/IAllSystemAppletProxiesService.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/IApplicationCreator.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/IApplicationFunctions.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/IApplicationProxy.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/IApplicationProxyService.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/IAudioController.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/ICommonStateGetter.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/IDebugFunctions.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/IDisplayController.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/IGlobalStateController.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/IHomeMenuFunctions.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/ILibraryAppletAccessor.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/ILibraryAppletCreator.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/ISelfController.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/IStorage.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/IStorageAccessor.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/ISystemAppletProxy.cs | 2 +- Ryujinx.HLE/HOS/Services/Am/IWindowController.cs | 2 +- Ryujinx.HLE/HOS/Services/Apm/IManager.cs | 2 +- Ryujinx.HLE/HOS/Services/Apm/ISession.cs | 2 +- Ryujinx.HLE/HOS/Services/Aud/AudioOut/IAudioOut.cs | 2 +- .../HOS/Services/Aud/AudioRenderer/IAudioRenderer.cs | 2 +- Ryujinx.HLE/HOS/Services/Aud/IAudioDevice.cs | 2 +- Ryujinx.HLE/HOS/Services/Aud/IAudioOutManager.cs | 2 +- Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs | 2 +- Ryujinx.HLE/HOS/Services/Aud/IHardwareOpusDecoder.cs | 2 +- Ryujinx.HLE/HOS/Services/Aud/IHardwareOpusDecoderManager.cs | 2 +- Ryujinx.HLE/HOS/Services/Bcat/IBcatService.cs | 2 +- .../HOS/Services/Bcat/IDeliveryCacheStorageService.cs | 2 +- Ryujinx.HLE/HOS/Services/Bcat/IServiceCreator.cs | 2 +- Ryujinx.HLE/HOS/Services/Bsd/IClient.cs | 2 +- Ryujinx.HLE/HOS/Services/Caps/IAlbumAccessorService.cs | 2 +- Ryujinx.HLE/HOS/Services/Caps/IScreenshotService.cs | 2 +- Ryujinx.HLE/HOS/Services/Es/IETicketService.cs | 2 +- Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs | 4 ++-- Ryujinx.HLE/HOS/Services/Friend/IServiceCreator.cs | 2 +- Ryujinx.HLE/HOS/Services/FspSrv/IDirectory.cs | 2 +- Ryujinx.HLE/HOS/Services/FspSrv/IFile.cs | 2 +- Ryujinx.HLE/HOS/Services/FspSrv/IFileSystem.cs | 2 +- Ryujinx.HLE/HOS/Services/FspSrv/IFileSystemProxy.cs | 2 +- Ryujinx.HLE/HOS/Services/FspSrv/IStorage.cs | 2 +- Ryujinx.HLE/HOS/Services/Hid/IActiveVibrationDeviceList.cs | 2 +- Ryujinx.HLE/HOS/Services/Hid/IAppletResource.cs | 2 +- Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs | 6 +++--- Ryujinx.HLE/HOS/Services/Irs/IIrSensorServer.cs | 2 +- Ryujinx.HLE/HOS/Services/Ldr/IRoInterface.cs | 2 +- Ryujinx.HLE/HOS/Services/Lm/ILogService.cs | 2 +- Ryujinx.HLE/HOS/Services/Lm/ILogger.cs | 2 +- Ryujinx.HLE/HOS/Services/Lr/ILocationResolver.cs | 2 +- Ryujinx.HLE/HOS/Services/Lr/ILocationResolverManager.cs | 2 +- Ryujinx.HLE/HOS/Services/Mm/IRequest.cs | 2 +- Ryujinx.HLE/HOS/Services/Ncm/IContentManager.cs | 2 +- Ryujinx.HLE/HOS/Services/Ncm/IContentStorage.cs | 2 +- Ryujinx.HLE/HOS/Services/Nfp/IUser.cs | 2 +- Ryujinx.HLE/HOS/Services/Nfp/IUserManager.cs | 2 +- Ryujinx.HLE/HOS/Services/Nifm/IGeneralService.cs | 2 +- Ryujinx.HLE/HOS/Services/Nifm/IRequest.cs | 2 +- Ryujinx.HLE/HOS/Services/Nifm/IStaticService.cs | 2 +- Ryujinx.HLE/HOS/Services/Ns/IAddOnContentManager.cs | 2 +- Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs | 2 +- Ryujinx.HLE/HOS/Services/Ns/IServiceGetterInterface.cs | 2 +- Ryujinx.HLE/HOS/Services/Ns/ISystemUpdateInterface.cs | 2 +- .../HOS/Services/Ns/IVulnerabilityManagerInterface.cs | 2 +- Ryujinx.HLE/HOS/Services/Nv/INvDrvServices.cs | 6 +++--- Ryujinx.HLE/HOS/Services/Pctl/IParentalControlService.cs | 2 +- .../HOS/Services/Pctl/IParentalControlServiceFactory.cs | 2 +- Ryujinx.HLE/HOS/Services/Pl/ISharedFontManager.cs | 2 +- Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs | 2 +- Ryujinx.HLE/HOS/Services/Psm/IPsmServer.cs | 2 +- Ryujinx.HLE/HOS/Services/Psm/IPsmSession.cs | 2 +- Ryujinx.HLE/HOS/Services/Set/ISettingsServer.cs | 2 +- Ryujinx.HLE/HOS/Services/Set/ISystemSettingsServer.cs | 2 +- Ryujinx.HLE/HOS/Services/Set/NxSettings.cs | 2 +- Ryujinx.HLE/HOS/Services/Sfdnsres/IResolver.cs | 2 +- Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs | 2 +- Ryujinx.HLE/HOS/Services/Spl/IRandomInterface.cs | 2 +- Ryujinx.HLE/HOS/Services/Ssl/ISslContext.cs | 2 +- Ryujinx.HLE/HOS/Services/Ssl/ISslService.cs | 2 +- Ryujinx.HLE/HOS/Services/Time/IStaticService.cs | 2 +- Ryujinx.HLE/HOS/Services/Time/ISteadyClock.cs | 2 +- Ryujinx.HLE/HOS/Services/Time/ISystemClock.cs | 2 +- Ryujinx.HLE/HOS/Services/Time/ITimeZoneService.cs | 2 +- Ryujinx.HLE/HOS/Services/Vi/IApplicationDisplayService.cs | 2 +- Ryujinx.HLE/HOS/Services/Vi/IApplicationRootService.cs | 2 +- Ryujinx.HLE/HOS/Services/Vi/IHOSBinderDriver.cs | 2 +- Ryujinx.HLE/HOS/Services/Vi/IManagerDisplayService.cs | 2 +- Ryujinx.HLE/HOS/Services/Vi/IManagerRootService.cs | 2 +- Ryujinx.HLE/HOS/Services/Vi/ISystemDisplayService.cs | 2 +- Ryujinx.HLE/HOS/Services/Vi/ISystemRootService.cs | 2 +- Ryujinx.HLE/HOS/Services/Vi/NvFlinger.cs | 2 +- 96 files changed, 101 insertions(+), 101 deletions(-) diff --git a/Ryujinx.HLE/FileSystem/Content/ContentManager.cs b/Ryujinx.HLE/FileSystem/Content/ContentManager.cs index d3ba174a35..4087b5462d 100644 --- a/Ryujinx.HLE/FileSystem/Content/ContentManager.cs +++ b/Ryujinx.HLE/FileSystem/Content/ContentManager.cs @@ -22,7 +22,7 @@ namespace Ryujinx.HLE.FileSystem.Content _contentDictionary = new SortedDictionary<(ulong, ContentType), string>(); _locationEntries = new Dictionary>(); - _sharedFontTitleDictionary = new Dictionary() + _sharedFontTitleDictionary = new Dictionary { { "FontStandard", 0x0100000000000811 }, { "FontChineseSimplified", 0x0100000000000814 }, diff --git a/Ryujinx.HLE/HOS/Font/SharedFontManager.cs b/Ryujinx.HLE/HOS/Font/SharedFontManager.cs index a79c810074..849a071a24 100644 --- a/Ryujinx.HLE/HOS/Font/SharedFontManager.cs +++ b/Ryujinx.HLE/HOS/Font/SharedFontManager.cs @@ -122,7 +122,7 @@ namespace Ryujinx.HLE.HOS.Font } } - _fontData = new Dictionary() + _fontData = new Dictionary { { SharedFontType.JapanUsEurope, CreateFont("FontStandard") }, { SharedFontType.SimplifiedChinese, CreateFont("FontChineseSimplified") }, diff --git a/Ryujinx.HLE/HOS/Kernel/SvcHandler.cs b/Ryujinx.HLE/HOS/Kernel/SvcHandler.cs index dd3412688a..39f3c92298 100644 --- a/Ryujinx.HLE/HOS/Kernel/SvcHandler.cs +++ b/Ryujinx.HLE/HOS/Kernel/SvcHandler.cs @@ -41,7 +41,7 @@ namespace Ryujinx.HLE.HOS.Kernel public SvcHandler(Switch device, KProcess process) { - _svcFuncs = new Dictionary() + _svcFuncs = new Dictionary { { 0x01, SvcSetHeapSize }, { 0x03, SvcSetMemoryAttribute }, diff --git a/Ryujinx.HLE/HOS/Services/Acc/IAccountService.cs b/Ryujinx.HLE/HOS/Services/Acc/IAccountService.cs index 7f35ee839f..0acbe8faef 100644 --- a/Ryujinx.HLE/HOS/Services/Acc/IAccountService.cs +++ b/Ryujinx.HLE/HOS/Services/Acc/IAccountService.cs @@ -16,7 +16,7 @@ namespace Ryujinx.HLE.HOS.Services.Acc public IAccountService() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetUserCount }, { 1, GetUserExistence }, diff --git a/Ryujinx.HLE/HOS/Services/Acc/IManagerForApplication.cs b/Ryujinx.HLE/HOS/Services/Acc/IManagerForApplication.cs index 44b2dc07e6..9a7b93b499 100644 --- a/Ryujinx.HLE/HOS/Services/Acc/IManagerForApplication.cs +++ b/Ryujinx.HLE/HOS/Services/Acc/IManagerForApplication.cs @@ -15,7 +15,7 @@ namespace Ryujinx.HLE.HOS.Services.Acc public IManagerForApplication(UInt128 uuid) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, CheckAvailability }, { 1, GetAccountId } diff --git a/Ryujinx.HLE/HOS/Services/Acc/IProfile.cs b/Ryujinx.HLE/HOS/Services/Acc/IProfile.cs index 6f23977326..1de52b21d8 100644 --- a/Ryujinx.HLE/HOS/Services/Acc/IProfile.cs +++ b/Ryujinx.HLE/HOS/Services/Acc/IProfile.cs @@ -22,7 +22,7 @@ namespace Ryujinx.HLE.HOS.Services.Acc public IProfile(UserProfile profile) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, Get }, { 1, GetBase }, diff --git a/Ryujinx.HLE/HOS/Services/Am/IAllSystemAppletProxiesService.cs b/Ryujinx.HLE/HOS/Services/Am/IAllSystemAppletProxiesService.cs index d468833141..b72235acca 100644 --- a/Ryujinx.HLE/HOS/Services/Am/IAllSystemAppletProxiesService.cs +++ b/Ryujinx.HLE/HOS/Services/Am/IAllSystemAppletProxiesService.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public IAllSystemAppletProxiesService() { - _commands = new Dictionary() + _commands = new Dictionary { { 100, OpenSystemAppletProxy } }; diff --git a/Ryujinx.HLE/HOS/Services/Am/IApplicationCreator.cs b/Ryujinx.HLE/HOS/Services/Am/IApplicationCreator.cs index dd704473f7..802f195886 100644 --- a/Ryujinx.HLE/HOS/Services/Am/IApplicationCreator.cs +++ b/Ryujinx.HLE/HOS/Services/Am/IApplicationCreator.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public IApplicationCreator() { - _commands = new Dictionary() + _commands = new Dictionary { //... }; diff --git a/Ryujinx.HLE/HOS/Services/Am/IApplicationFunctions.cs b/Ryujinx.HLE/HOS/Services/Am/IApplicationFunctions.cs index 0ebd261ac6..6c6f1473a2 100644 --- a/Ryujinx.HLE/HOS/Services/Am/IApplicationFunctions.cs +++ b/Ryujinx.HLE/HOS/Services/Am/IApplicationFunctions.cs @@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public IApplicationFunctions() { - _commands = new Dictionary() + _commands = new Dictionary { { 1, PopLaunchParameter }, { 20, EnsureSaveData }, diff --git a/Ryujinx.HLE/HOS/Services/Am/IApplicationProxy.cs b/Ryujinx.HLE/HOS/Services/Am/IApplicationProxy.cs index 450f3e1841..0152b2d4bb 100644 --- a/Ryujinx.HLE/HOS/Services/Am/IApplicationProxy.cs +++ b/Ryujinx.HLE/HOS/Services/Am/IApplicationProxy.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public IApplicationProxy() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetCommonStateGetter }, { 1, GetSelfController }, diff --git a/Ryujinx.HLE/HOS/Services/Am/IApplicationProxyService.cs b/Ryujinx.HLE/HOS/Services/Am/IApplicationProxyService.cs index b079438f03..1e3141afd7 100644 --- a/Ryujinx.HLE/HOS/Services/Am/IApplicationProxyService.cs +++ b/Ryujinx.HLE/HOS/Services/Am/IApplicationProxyService.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public IApplicationProxyService() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, OpenApplicationProxy } }; diff --git a/Ryujinx.HLE/HOS/Services/Am/IAudioController.cs b/Ryujinx.HLE/HOS/Services/Am/IAudioController.cs index 89b64c99aa..3a03b3dcd6 100644 --- a/Ryujinx.HLE/HOS/Services/Am/IAudioController.cs +++ b/Ryujinx.HLE/HOS/Services/Am/IAudioController.cs @@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public IAudioController() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, SetExpectedMasterVolume }, { 1, GetMainAppletExpectedMasterVolume }, diff --git a/Ryujinx.HLE/HOS/Services/Am/ICommonStateGetter.cs b/Ryujinx.HLE/HOS/Services/Am/ICommonStateGetter.cs index 5ee92fcc7d..723c25ce65 100644 --- a/Ryujinx.HLE/HOS/Services/Am/ICommonStateGetter.cs +++ b/Ryujinx.HLE/HOS/Services/Am/ICommonStateGetter.cs @@ -18,7 +18,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public ICommonStateGetter(Horizon system) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetEventHandle }, { 1, ReceiveMessage }, diff --git a/Ryujinx.HLE/HOS/Services/Am/IDebugFunctions.cs b/Ryujinx.HLE/HOS/Services/Am/IDebugFunctions.cs index bf08d81a3c..062457c0f3 100644 --- a/Ryujinx.HLE/HOS/Services/Am/IDebugFunctions.cs +++ b/Ryujinx.HLE/HOS/Services/Am/IDebugFunctions.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public IDebugFunctions() { - _commands = new Dictionary() + _commands = new Dictionary { //... }; diff --git a/Ryujinx.HLE/HOS/Services/Am/IDisplayController.cs b/Ryujinx.HLE/HOS/Services/Am/IDisplayController.cs index 005eccad6b..e52e21734f 100644 --- a/Ryujinx.HLE/HOS/Services/Am/IDisplayController.cs +++ b/Ryujinx.HLE/HOS/Services/Am/IDisplayController.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public IDisplayController() { - _commands = new Dictionary() + _commands = new Dictionary { //... }; diff --git a/Ryujinx.HLE/HOS/Services/Am/IGlobalStateController.cs b/Ryujinx.HLE/HOS/Services/Am/IGlobalStateController.cs index ed8f3f0eae..3604cee164 100644 --- a/Ryujinx.HLE/HOS/Services/Am/IGlobalStateController.cs +++ b/Ryujinx.HLE/HOS/Services/Am/IGlobalStateController.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public IGlobalStateController() { - _commands = new Dictionary() + _commands = new Dictionary { //... }; diff --git a/Ryujinx.HLE/HOS/Services/Am/IHomeMenuFunctions.cs b/Ryujinx.HLE/HOS/Services/Am/IHomeMenuFunctions.cs index 054c7caa14..547b1216e5 100644 --- a/Ryujinx.HLE/HOS/Services/Am/IHomeMenuFunctions.cs +++ b/Ryujinx.HLE/HOS/Services/Am/IHomeMenuFunctions.cs @@ -16,7 +16,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public IHomeMenuFunctions(Horizon system) { - _commands = new Dictionary() + _commands = new Dictionary { { 10, RequestToGetForeground }, { 21, GetPopFromGeneralChannelEvent } diff --git a/Ryujinx.HLE/HOS/Services/Am/ILibraryAppletAccessor.cs b/Ryujinx.HLE/HOS/Services/Am/ILibraryAppletAccessor.cs index 75491bfa6b..f4c93b0f34 100644 --- a/Ryujinx.HLE/HOS/Services/Am/ILibraryAppletAccessor.cs +++ b/Ryujinx.HLE/HOS/Services/Am/ILibraryAppletAccessor.cs @@ -16,7 +16,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public ILibraryAppletAccessor(Horizon system) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetAppletStateChangedEvent }, { 10, Start }, diff --git a/Ryujinx.HLE/HOS/Services/Am/ILibraryAppletCreator.cs b/Ryujinx.HLE/HOS/Services/Am/ILibraryAppletCreator.cs index 09b6a81cf9..de971d8c4d 100644 --- a/Ryujinx.HLE/HOS/Services/Am/ILibraryAppletCreator.cs +++ b/Ryujinx.HLE/HOS/Services/Am/ILibraryAppletCreator.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public ILibraryAppletCreator() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, CreateLibraryApplet }, { 10, CreateStorage } diff --git a/Ryujinx.HLE/HOS/Services/Am/ISelfController.cs b/Ryujinx.HLE/HOS/Services/Am/ISelfController.cs index 43c7c7a69b..2171ae7307 100644 --- a/Ryujinx.HLE/HOS/Services/Am/ISelfController.cs +++ b/Ryujinx.HLE/HOS/Services/Am/ISelfController.cs @@ -18,7 +18,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public ISelfController(Horizon system) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, Exit }, { 1, LockExit }, diff --git a/Ryujinx.HLE/HOS/Services/Am/IStorage.cs b/Ryujinx.HLE/HOS/Services/Am/IStorage.cs index 15a1010ab9..da28d258ff 100644 --- a/Ryujinx.HLE/HOS/Services/Am/IStorage.cs +++ b/Ryujinx.HLE/HOS/Services/Am/IStorage.cs @@ -13,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public IStorage(byte[] data) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, Open } }; diff --git a/Ryujinx.HLE/HOS/Services/Am/IStorageAccessor.cs b/Ryujinx.HLE/HOS/Services/Am/IStorageAccessor.cs index 07fa12021f..110343c1c9 100644 --- a/Ryujinx.HLE/HOS/Services/Am/IStorageAccessor.cs +++ b/Ryujinx.HLE/HOS/Services/Am/IStorageAccessor.cs @@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public IStorageAccessor(IStorage storage) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetSize }, { 10, Write }, diff --git a/Ryujinx.HLE/HOS/Services/Am/ISystemAppletProxy.cs b/Ryujinx.HLE/HOS/Services/Am/ISystemAppletProxy.cs index f0c09806cd..4574ab3db1 100644 --- a/Ryujinx.HLE/HOS/Services/Am/ISystemAppletProxy.cs +++ b/Ryujinx.HLE/HOS/Services/Am/ISystemAppletProxy.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public ISystemAppletProxy() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetCommonStateGetter }, { 1, GetSelfController }, diff --git a/Ryujinx.HLE/HOS/Services/Am/IWindowController.cs b/Ryujinx.HLE/HOS/Services/Am/IWindowController.cs index 3aaa79bdaa..d8281f04b6 100644 --- a/Ryujinx.HLE/HOS/Services/Am/IWindowController.cs +++ b/Ryujinx.HLE/HOS/Services/Am/IWindowController.cs @@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Am public IWindowController() { - _commands = new Dictionary() + _commands = new Dictionary { { 1, GetAppletResourceUserId }, { 10, AcquireForegroundRights } diff --git a/Ryujinx.HLE/HOS/Services/Apm/IManager.cs b/Ryujinx.HLE/HOS/Services/Apm/IManager.cs index f4aa71e8e2..3803f9dbd6 100644 --- a/Ryujinx.HLE/HOS/Services/Apm/IManager.cs +++ b/Ryujinx.HLE/HOS/Services/Apm/IManager.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Apm public IManager() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, OpenSession } }; diff --git a/Ryujinx.HLE/HOS/Services/Apm/ISession.cs b/Ryujinx.HLE/HOS/Services/Apm/ISession.cs index 3a70567440..e37305385c 100644 --- a/Ryujinx.HLE/HOS/Services/Apm/ISession.cs +++ b/Ryujinx.HLE/HOS/Services/Apm/ISession.cs @@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Apm public ISession() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, SetPerformanceConfiguration }, { 1, GetPerformanceConfiguration } diff --git a/Ryujinx.HLE/HOS/Services/Aud/AudioOut/IAudioOut.cs b/Ryujinx.HLE/HOS/Services/Aud/AudioOut/IAudioOut.cs index 847101671a..ca2dad6335 100644 --- a/Ryujinx.HLE/HOS/Services/Aud/AudioOut/IAudioOut.cs +++ b/Ryujinx.HLE/HOS/Services/Aud/AudioOut/IAudioOut.cs @@ -21,7 +21,7 @@ namespace Ryujinx.HLE.HOS.Services.Aud.AudioOut public IAudioOut(IAalOutput audioOut, KEvent releaseEvent, int track) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetAudioOutState }, { 1, StartAudioOut }, diff --git a/Ryujinx.HLE/HOS/Services/Aud/AudioRenderer/IAudioRenderer.cs b/Ryujinx.HLE/HOS/Services/Aud/AudioRenderer/IAudioRenderer.cs index 4a8450eb42..25c9dfedd4 100644 --- a/Ryujinx.HLE/HOS/Services/Aud/AudioRenderer/IAudioRenderer.cs +++ b/Ryujinx.HLE/HOS/Services/Aud/AudioRenderer/IAudioRenderer.cs @@ -48,7 +48,7 @@ namespace Ryujinx.HLE.HOS.Services.Aud.AudioRenderer IAalOutput audioOut, AudioRendererParameter Params) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetSampleRate }, { 1, GetSampleCount }, diff --git a/Ryujinx.HLE/HOS/Services/Aud/IAudioDevice.cs b/Ryujinx.HLE/HOS/Services/Aud/IAudioDevice.cs index ce5d223d1f..9b7691251d 100644 --- a/Ryujinx.HLE/HOS/Services/Aud/IAudioDevice.cs +++ b/Ryujinx.HLE/HOS/Services/Aud/IAudioDevice.cs @@ -18,7 +18,7 @@ namespace Ryujinx.HLE.HOS.Services.Aud public IAudioDevice(Horizon system) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, ListAudioDeviceName }, { 1, SetAudioDeviceOutputVolume }, diff --git a/Ryujinx.HLE/HOS/Services/Aud/IAudioOutManager.cs b/Ryujinx.HLE/HOS/Services/Aud/IAudioOutManager.cs index c51b1017f6..1b2d2f557e 100644 --- a/Ryujinx.HLE/HOS/Services/Aud/IAudioOutManager.cs +++ b/Ryujinx.HLE/HOS/Services/Aud/IAudioOutManager.cs @@ -25,7 +25,7 @@ namespace Ryujinx.HLE.HOS.Services.Aud public IAudioOutManager() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, ListAudioOuts }, { 1, OpenAudioOut }, diff --git a/Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs b/Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs index 9f219eed12..31e3b55a0b 100644 --- a/Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs +++ b/Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs @@ -26,7 +26,7 @@ namespace Ryujinx.HLE.HOS.Services.Aud public IAudioRendererManager() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, OpenAudioRenderer }, { 1, GetAudioRendererWorkBufferSize }, diff --git a/Ryujinx.HLE/HOS/Services/Aud/IHardwareOpusDecoder.cs b/Ryujinx.HLE/HOS/Services/Aud/IHardwareOpusDecoder.cs index 996570bc2b..ec574eab9f 100644 --- a/Ryujinx.HLE/HOS/Services/Aud/IHardwareOpusDecoder.cs +++ b/Ryujinx.HLE/HOS/Services/Aud/IHardwareOpusDecoder.cs @@ -21,7 +21,7 @@ namespace Ryujinx.HLE.HOS.Services.Aud public IHardwareOpusDecoder(int sampleRate, int channelsCount) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, DecodeInterleaved }, { 4, DecodeInterleavedWithPerf } diff --git a/Ryujinx.HLE/HOS/Services/Aud/IHardwareOpusDecoderManager.cs b/Ryujinx.HLE/HOS/Services/Aud/IHardwareOpusDecoderManager.cs index 8d1298a11d..72b17d0363 100644 --- a/Ryujinx.HLE/HOS/Services/Aud/IHardwareOpusDecoderManager.cs +++ b/Ryujinx.HLE/HOS/Services/Aud/IHardwareOpusDecoderManager.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Aud public IHardwareOpusDecoderManager() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, Initialize }, { 1, GetWorkBufferSize } diff --git a/Ryujinx.HLE/HOS/Services/Bcat/IBcatService.cs b/Ryujinx.HLE/HOS/Services/Bcat/IBcatService.cs index 1517cf7959..7fdbfe5160 100644 --- a/Ryujinx.HLE/HOS/Services/Bcat/IBcatService.cs +++ b/Ryujinx.HLE/HOS/Services/Bcat/IBcatService.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Bcat public IBcatService() { - _commands = new Dictionary() + _commands = new Dictionary { //... }; diff --git a/Ryujinx.HLE/HOS/Services/Bcat/IDeliveryCacheStorageService.cs b/Ryujinx.HLE/HOS/Services/Bcat/IDeliveryCacheStorageService.cs index 479691fcf4..5a09bc0c1a 100644 --- a/Ryujinx.HLE/HOS/Services/Bcat/IDeliveryCacheStorageService.cs +++ b/Ryujinx.HLE/HOS/Services/Bcat/IDeliveryCacheStorageService.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Bcat public IDeliveryCacheStorageService() { - _commands = new Dictionary() + _commands = new Dictionary { //... }; diff --git a/Ryujinx.HLE/HOS/Services/Bcat/IServiceCreator.cs b/Ryujinx.HLE/HOS/Services/Bcat/IServiceCreator.cs index 2960cf21f5..cb10f311e5 100644 --- a/Ryujinx.HLE/HOS/Services/Bcat/IServiceCreator.cs +++ b/Ryujinx.HLE/HOS/Services/Bcat/IServiceCreator.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Bcat public IServiceCreator() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, CreateBcatService }, { 1, CreateDeliveryCacheStorageService } diff --git a/Ryujinx.HLE/HOS/Services/Bsd/IClient.cs b/Ryujinx.HLE/HOS/Services/Bsd/IClient.cs index 6163ac8ce3..e70231bba0 100644 --- a/Ryujinx.HLE/HOS/Services/Bsd/IClient.cs +++ b/Ryujinx.HLE/HOS/Services/Bsd/IClient.cs @@ -105,7 +105,7 @@ namespace Ryujinx.HLE.HOS.Services.Bsd public IClient(bool isPrivileged) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, RegisterClient }, { 1, StartMonitoring }, diff --git a/Ryujinx.HLE/HOS/Services/Caps/IAlbumAccessorService.cs b/Ryujinx.HLE/HOS/Services/Caps/IAlbumAccessorService.cs index 863bf6b4cd..bd161e5102 100644 --- a/Ryujinx.HLE/HOS/Services/Caps/IAlbumAccessorService.cs +++ b/Ryujinx.HLE/HOS/Services/Caps/IAlbumAccessorService.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Caps public IAlbumAccessorService() { - _commands = new Dictionary() + _commands = new Dictionary { //... }; diff --git a/Ryujinx.HLE/HOS/Services/Caps/IScreenshotService.cs b/Ryujinx.HLE/HOS/Services/Caps/IScreenshotService.cs index 26aaa7b244..de1968d408 100644 --- a/Ryujinx.HLE/HOS/Services/Caps/IScreenshotService.cs +++ b/Ryujinx.HLE/HOS/Services/Caps/IScreenshotService.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Caps public IScreenshotService() { - _commands = new Dictionary() + _commands = new Dictionary { //... }; diff --git a/Ryujinx.HLE/HOS/Services/Es/IETicketService.cs b/Ryujinx.HLE/HOS/Services/Es/IETicketService.cs index 400d9aee4f..7f4cdfed48 100644 --- a/Ryujinx.HLE/HOS/Services/Es/IETicketService.cs +++ b/Ryujinx.HLE/HOS/Services/Es/IETicketService.cs @@ -13,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Services.Es public IeTicketService() { - _commands = new Dictionary() + _commands = new Dictionary { }; diff --git a/Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs b/Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs index 98dfd00c16..85db8545fb 100644 --- a/Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs +++ b/Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs @@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Friend public IFriendService() { - _commands = new Dictionary() + _commands = new Dictionary { { 10101, GetFriendList }, { 10601, DeclareCloseOnlinePlaySession }, @@ -31,7 +31,7 @@ namespace Ryujinx.HLE.HOS.Services.Friend int unknown0 = context.RequestData.ReadInt32(); - FriendFilter filter = new FriendFilter() + FriendFilter filter = new FriendFilter { PresenceStatus = (PresenceStatusFilter)context.RequestData.ReadInt32(), IsFavoriteOnly = context.RequestData.ReadBoolean(), diff --git a/Ryujinx.HLE/HOS/Services/Friend/IServiceCreator.cs b/Ryujinx.HLE/HOS/Services/Friend/IServiceCreator.cs index 66226c022f..2ac9f5da17 100644 --- a/Ryujinx.HLE/HOS/Services/Friend/IServiceCreator.cs +++ b/Ryujinx.HLE/HOS/Services/Friend/IServiceCreator.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Friend public IServiceCreator() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, CreateFriendService } }; diff --git a/Ryujinx.HLE/HOS/Services/FspSrv/IDirectory.cs b/Ryujinx.HLE/HOS/Services/FspSrv/IDirectory.cs index 340af1c003..f5c20ffdf5 100644 --- a/Ryujinx.HLE/HOS/Services/FspSrv/IDirectory.cs +++ b/Ryujinx.HLE/HOS/Services/FspSrv/IDirectory.cs @@ -27,7 +27,7 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv public IDirectory(string directoryPath, int flags, IFileSystemProvider provider) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, Read }, { 1, GetEntryCount } diff --git a/Ryujinx.HLE/HOS/Services/FspSrv/IFile.cs b/Ryujinx.HLE/HOS/Services/FspSrv/IFile.cs index 90437ab616..b7fc96faf9 100644 --- a/Ryujinx.HLE/HOS/Services/FspSrv/IFile.cs +++ b/Ryujinx.HLE/HOS/Services/FspSrv/IFile.cs @@ -19,7 +19,7 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv public IFile(Stream baseStream, string hostPath) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, Read }, { 1, Write }, diff --git a/Ryujinx.HLE/HOS/Services/FspSrv/IFileSystem.cs b/Ryujinx.HLE/HOS/Services/FspSrv/IFileSystem.cs index e2c247dee6..d0d0f70bd7 100644 --- a/Ryujinx.HLE/HOS/Services/FspSrv/IFileSystem.cs +++ b/Ryujinx.HLE/HOS/Services/FspSrv/IFileSystem.cs @@ -23,7 +23,7 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv public IFileSystem(string path, IFileSystemProvider provider) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, CreateFile }, { 1, DeleteFile }, diff --git a/Ryujinx.HLE/HOS/Services/FspSrv/IFileSystemProxy.cs b/Ryujinx.HLE/HOS/Services/FspSrv/IFileSystemProxy.cs index 020c098c38..08a9d6f45f 100644 --- a/Ryujinx.HLE/HOS/Services/FspSrv/IFileSystemProxy.cs +++ b/Ryujinx.HLE/HOS/Services/FspSrv/IFileSystemProxy.cs @@ -20,7 +20,7 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv public IFileSystemProxy() { - _commands = new Dictionary() + _commands = new Dictionary { { 1, Initialize }, { 8, OpenFileSystemWithId }, diff --git a/Ryujinx.HLE/HOS/Services/FspSrv/IStorage.cs b/Ryujinx.HLE/HOS/Services/FspSrv/IStorage.cs index 26b073320d..02a7d122ab 100644 --- a/Ryujinx.HLE/HOS/Services/FspSrv/IStorage.cs +++ b/Ryujinx.HLE/HOS/Services/FspSrv/IStorage.cs @@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv public IStorage(Stream baseStream) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, Read } }; diff --git a/Ryujinx.HLE/HOS/Services/Hid/IActiveVibrationDeviceList.cs b/Ryujinx.HLE/HOS/Services/Hid/IActiveVibrationDeviceList.cs index 388effbd14..9fb773f8d7 100644 --- a/Ryujinx.HLE/HOS/Services/Hid/IActiveVibrationDeviceList.cs +++ b/Ryujinx.HLE/HOS/Services/Hid/IActiveVibrationDeviceList.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid public IActiveApplicationDeviceList() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, ActivateVibrationDevice } }; diff --git a/Ryujinx.HLE/HOS/Services/Hid/IAppletResource.cs b/Ryujinx.HLE/HOS/Services/Hid/IAppletResource.cs index e092700314..fa2bce3ba2 100644 --- a/Ryujinx.HLE/HOS/Services/Hid/IAppletResource.cs +++ b/Ryujinx.HLE/HOS/Services/Hid/IAppletResource.cs @@ -15,7 +15,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid public IAppletResource(KSharedMemory hidSharedMem) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetSharedMemoryHandle } }; diff --git a/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs b/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs index ff08c8761c..ef54a3c5c8 100644 --- a/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs +++ b/Ryujinx.HLE/HOS/Services/Hid/IHidServer.cs @@ -41,7 +41,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid public IHidServer(Horizon system) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, CreateAppletResource }, { 1, ActivateDebugPad }, @@ -429,7 +429,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid { int sixAxisSensorHandle = context.RequestData.ReadInt32(); - _sensorFusionParams = new HidSensorFusionParameters() + _sensorFusionParams = new HidSensorFusionParameters { RevisePower = context.RequestData.ReadInt32(), ReviseRange = context.RequestData.ReadInt32() @@ -484,7 +484,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid { int sixAxisSensorHandle = context.RequestData.ReadInt32(); - _accelerometerParams = new HidAccelerometerParameters() + _accelerometerParams = new HidAccelerometerParameters { X = context.RequestData.ReadInt32(), Y = context.RequestData.ReadInt32() diff --git a/Ryujinx.HLE/HOS/Services/Irs/IIrSensorServer.cs b/Ryujinx.HLE/HOS/Services/Irs/IIrSensorServer.cs index 81e0d91513..596dbc7369 100644 --- a/Ryujinx.HLE/HOS/Services/Irs/IIrSensorServer.cs +++ b/Ryujinx.HLE/HOS/Services/Irs/IIrSensorServer.cs @@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Irs public IIrSensorServer() { - _commands = new Dictionary() + _commands = new Dictionary { { 302, ActivateIrsensor }, { 303, DeactivateIrsensor } diff --git a/Ryujinx.HLE/HOS/Services/Ldr/IRoInterface.cs b/Ryujinx.HLE/HOS/Services/Ldr/IRoInterface.cs index 0eb3dced71..b57b5ebb24 100644 --- a/Ryujinx.HLE/HOS/Services/Ldr/IRoInterface.cs +++ b/Ryujinx.HLE/HOS/Services/Ldr/IRoInterface.cs @@ -112,7 +112,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldr public IRoInterface() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, LoadNro }, { 1, UnloadNro }, diff --git a/Ryujinx.HLE/HOS/Services/Lm/ILogService.cs b/Ryujinx.HLE/HOS/Services/Lm/ILogService.cs index c96897e8c4..6cfca1ae13 100644 --- a/Ryujinx.HLE/HOS/Services/Lm/ILogService.cs +++ b/Ryujinx.HLE/HOS/Services/Lm/ILogService.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Lm public ILogService() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, Initialize } }; diff --git a/Ryujinx.HLE/HOS/Services/Lm/ILogger.cs b/Ryujinx.HLE/HOS/Services/Lm/ILogger.cs index f494c00b0a..0d95aeb99d 100644 --- a/Ryujinx.HLE/HOS/Services/Lm/ILogger.cs +++ b/Ryujinx.HLE/HOS/Services/Lm/ILogger.cs @@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Lm public ILogger() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, Log } }; diff --git a/Ryujinx.HLE/HOS/Services/Lr/ILocationResolver.cs b/Ryujinx.HLE/HOS/Services/Lr/ILocationResolver.cs index 28ee337663..48ae7e6650 100644 --- a/Ryujinx.HLE/HOS/Services/Lr/ILocationResolver.cs +++ b/Ryujinx.HLE/HOS/Services/Lr/ILocationResolver.cs @@ -20,7 +20,7 @@ namespace Ryujinx.HLE.HOS.Services.Lr public ILocationResolver(StorageId storageId) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, ResolveProgramPath }, { 1, RedirectProgramPath }, diff --git a/Ryujinx.HLE/HOS/Services/Lr/ILocationResolverManager.cs b/Ryujinx.HLE/HOS/Services/Lr/ILocationResolverManager.cs index a6291ab9a9..1e1d979509 100644 --- a/Ryujinx.HLE/HOS/Services/Lr/ILocationResolverManager.cs +++ b/Ryujinx.HLE/HOS/Services/Lr/ILocationResolverManager.cs @@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Lr public ILocationResolverManager() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, OpenLocationResolver } }; diff --git a/Ryujinx.HLE/HOS/Services/Mm/IRequest.cs b/Ryujinx.HLE/HOS/Services/Mm/IRequest.cs index 20952732cf..ccdbabed49 100644 --- a/Ryujinx.HLE/HOS/Services/Mm/IRequest.cs +++ b/Ryujinx.HLE/HOS/Services/Mm/IRequest.cs @@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Mm public IRequest() { - _commands = new Dictionary() + _commands = new Dictionary { { 1, InitializeOld }, { 4, Initialize }, diff --git a/Ryujinx.HLE/HOS/Services/Ncm/IContentManager.cs b/Ryujinx.HLE/HOS/Services/Ncm/IContentManager.cs index eb72aaedd6..e630af3d12 100644 --- a/Ryujinx.HLE/HOS/Services/Ncm/IContentManager.cs +++ b/Ryujinx.HLE/HOS/Services/Ncm/IContentManager.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Ncm public IContentManager() { - _commands = new Dictionary() + _commands = new Dictionary { }; diff --git a/Ryujinx.HLE/HOS/Services/Ncm/IContentStorage.cs b/Ryujinx.HLE/HOS/Services/Ncm/IContentStorage.cs index 3e0fdb1d65..5c34076dd6 100644 --- a/Ryujinx.HLE/HOS/Services/Ncm/IContentStorage.cs +++ b/Ryujinx.HLE/HOS/Services/Ncm/IContentStorage.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Ncm public IContentStorage() { - _commands = new Dictionary() + _commands = new Dictionary { }; diff --git a/Ryujinx.HLE/HOS/Services/Nfp/IUser.cs b/Ryujinx.HLE/HOS/Services/Nfp/IUser.cs index 9285794c65..9bb728536b 100644 --- a/Ryujinx.HLE/HOS/Services/Nfp/IUser.cs +++ b/Ryujinx.HLE/HOS/Services/Nfp/IUser.cs @@ -27,7 +27,7 @@ namespace Ryujinx.HLE.HOS.Services.Nfp public IUser(Horizon system) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, Initialize }, { 17, AttachActivateEvent }, diff --git a/Ryujinx.HLE/HOS/Services/Nfp/IUserManager.cs b/Ryujinx.HLE/HOS/Services/Nfp/IUserManager.cs index d87eea2011..d325de92ce 100644 --- a/Ryujinx.HLE/HOS/Services/Nfp/IUserManager.cs +++ b/Ryujinx.HLE/HOS/Services/Nfp/IUserManager.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Nfp public IUserManager() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetUserInterface } }; diff --git a/Ryujinx.HLE/HOS/Services/Nifm/IGeneralService.cs b/Ryujinx.HLE/HOS/Services/Nifm/IGeneralService.cs index 45469b4e7d..1d39137625 100644 --- a/Ryujinx.HLE/HOS/Services/Nifm/IGeneralService.cs +++ b/Ryujinx.HLE/HOS/Services/Nifm/IGeneralService.cs @@ -19,7 +19,7 @@ namespace Ryujinx.HLE.HOS.Services.Nifm public IGeneralService() { - _commands = new Dictionary() + _commands = new Dictionary { { 4, CreateRequest }, { 12, GetCurrentIpAddress } diff --git a/Ryujinx.HLE/HOS/Services/Nifm/IRequest.cs b/Ryujinx.HLE/HOS/Services/Nifm/IRequest.cs index 36924ce6df..7b040fd2d7 100644 --- a/Ryujinx.HLE/HOS/Services/Nifm/IRequest.cs +++ b/Ryujinx.HLE/HOS/Services/Nifm/IRequest.cs @@ -17,7 +17,7 @@ namespace Ryujinx.HLE.HOS.Services.Nifm public IRequest(Horizon system) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetRequestState }, { 1, GetResult }, diff --git a/Ryujinx.HLE/HOS/Services/Nifm/IStaticService.cs b/Ryujinx.HLE/HOS/Services/Nifm/IStaticService.cs index 4a9834fc46..d306252413 100644 --- a/Ryujinx.HLE/HOS/Services/Nifm/IStaticService.cs +++ b/Ryujinx.HLE/HOS/Services/Nifm/IStaticService.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Nifm public IStaticService() { - _commands = new Dictionary() + _commands = new Dictionary { { 4, CreateGeneralServiceOld }, { 5, CreateGeneralService } diff --git a/Ryujinx.HLE/HOS/Services/Ns/IAddOnContentManager.cs b/Ryujinx.HLE/HOS/Services/Ns/IAddOnContentManager.cs index f2bf6e8a12..a8f85abcc6 100644 --- a/Ryujinx.HLE/HOS/Services/Ns/IAddOnContentManager.cs +++ b/Ryujinx.HLE/HOS/Services/Ns/IAddOnContentManager.cs @@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Ns public IAddOnContentManager() { - _commands = new Dictionary() + _commands = new Dictionary { { 2, CountAddOnContent }, { 3, ListAddOnContent } diff --git a/Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs b/Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs index a874a88c90..ea23528624 100644 --- a/Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs +++ b/Ryujinx.HLE/HOS/Services/Ns/IApplicationManagerInterface.cs @@ -13,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Services.Ns public IApplicationManagerInterface() { - _commands = new Dictionary() + _commands = new Dictionary { }; diff --git a/Ryujinx.HLE/HOS/Services/Ns/IServiceGetterInterface.cs b/Ryujinx.HLE/HOS/Services/Ns/IServiceGetterInterface.cs index 592f247667..7642582e01 100644 --- a/Ryujinx.HLE/HOS/Services/Ns/IServiceGetterInterface.cs +++ b/Ryujinx.HLE/HOS/Services/Ns/IServiceGetterInterface.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Ns public IServiceGetterInterface() { - _commands = new Dictionary() + _commands = new Dictionary { //... }; diff --git a/Ryujinx.HLE/HOS/Services/Ns/ISystemUpdateInterface.cs b/Ryujinx.HLE/HOS/Services/Ns/ISystemUpdateInterface.cs index 2cca24f4df..4584586ada 100644 --- a/Ryujinx.HLE/HOS/Services/Ns/ISystemUpdateInterface.cs +++ b/Ryujinx.HLE/HOS/Services/Ns/ISystemUpdateInterface.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Ns public ISystemUpdateInterface() { - _commands = new Dictionary() + _commands = new Dictionary { //... }; diff --git a/Ryujinx.HLE/HOS/Services/Ns/IVulnerabilityManagerInterface.cs b/Ryujinx.HLE/HOS/Services/Ns/IVulnerabilityManagerInterface.cs index 4b8143fa15..bf7c20dc7c 100644 --- a/Ryujinx.HLE/HOS/Services/Ns/IVulnerabilityManagerInterface.cs +++ b/Ryujinx.HLE/HOS/Services/Ns/IVulnerabilityManagerInterface.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Ns public IVulnerabilityManagerInterface() { - _commands = new Dictionary() + _commands = new Dictionary { //... }; diff --git a/Ryujinx.HLE/HOS/Services/Nv/INvDrvServices.cs b/Ryujinx.HLE/HOS/Services/Nv/INvDrvServices.cs index 02b7f6ed2f..ec5c7f76e6 100644 --- a/Ryujinx.HLE/HOS/Services/Nv/INvDrvServices.cs +++ b/Ryujinx.HLE/HOS/Services/Nv/INvDrvServices.cs @@ -21,8 +21,8 @@ namespace Ryujinx.HLE.HOS.Services.Nv public override IReadOnlyDictionary Commands => _commands; private static Dictionary _ioctlProcessors = - new Dictionary() - { + new Dictionary + { { "/dev/nvhost-as-gpu", ProcessIoctlNvGpuAS }, { "/dev/nvhost-ctrl", ProcessIoctlNvHostCtrl }, { "/dev/nvhost-ctrl-gpu", ProcessIoctlNvGpuGpu }, @@ -36,7 +36,7 @@ namespace Ryujinx.HLE.HOS.Services.Nv public INvDrvServices(Horizon system) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, Open }, { 1, Ioctl }, diff --git a/Ryujinx.HLE/HOS/Services/Pctl/IParentalControlService.cs b/Ryujinx.HLE/HOS/Services/Pctl/IParentalControlService.cs index 106e3035f8..dbc384c6e0 100644 --- a/Ryujinx.HLE/HOS/Services/Pctl/IParentalControlService.cs +++ b/Ryujinx.HLE/HOS/Services/Pctl/IParentalControlService.cs @@ -16,7 +16,7 @@ namespace Ryujinx.HLE.HOS.Services.Pctl public IParentalControlService(bool needInitialize = true) { - _commands = new Dictionary() + _commands = new Dictionary { { 1, Initialize } }; diff --git a/Ryujinx.HLE/HOS/Services/Pctl/IParentalControlServiceFactory.cs b/Ryujinx.HLE/HOS/Services/Pctl/IParentalControlServiceFactory.cs index 31231253f5..18e2f39467 100644 --- a/Ryujinx.HLE/HOS/Services/Pctl/IParentalControlServiceFactory.cs +++ b/Ryujinx.HLE/HOS/Services/Pctl/IParentalControlServiceFactory.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Pctl public IParentalControlServiceFactory() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, CreateService }, { 1, CreateServiceWithoutInitialize } diff --git a/Ryujinx.HLE/HOS/Services/Pl/ISharedFontManager.cs b/Ryujinx.HLE/HOS/Services/Pl/ISharedFontManager.cs index d497acaa3d..dca823446c 100644 --- a/Ryujinx.HLE/HOS/Services/Pl/ISharedFontManager.cs +++ b/Ryujinx.HLE/HOS/Services/Pl/ISharedFontManager.cs @@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Pl public ISharedFontManager() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, RequestLoad }, { 1, GetLoadState }, diff --git a/Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs b/Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs index 0e7a6edc13..9c19d30447 100644 --- a/Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs +++ b/Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs @@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Prepo public IPrepoService() { - _commands = new Dictionary() + _commands = new Dictionary { { 10101, SaveReportWithUser } }; diff --git a/Ryujinx.HLE/HOS/Services/Psm/IPsmServer.cs b/Ryujinx.HLE/HOS/Services/Psm/IPsmServer.cs index 473f0e8241..0145536433 100644 --- a/Ryujinx.HLE/HOS/Services/Psm/IPsmServer.cs +++ b/Ryujinx.HLE/HOS/Services/Psm/IPsmServer.cs @@ -19,7 +19,7 @@ namespace Ryujinx.HLE.HOS.Services.Psm public IPsmServer() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetBatteryChargePercentage }, { 1, GetChargerType }, diff --git a/Ryujinx.HLE/HOS/Services/Psm/IPsmSession.cs b/Ryujinx.HLE/HOS/Services/Psm/IPsmSession.cs index 7d15454c96..54ddd23c0a 100644 --- a/Ryujinx.HLE/HOS/Services/Psm/IPsmSession.cs +++ b/Ryujinx.HLE/HOS/Services/Psm/IPsmSession.cs @@ -16,7 +16,7 @@ namespace Ryujinx.HLE.HOS.Services.Psm public IPsmSession(Horizon system) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, BindStateChangeEvent }, { 1, UnbindStateChangeEvent }, diff --git a/Ryujinx.HLE/HOS/Services/Set/ISettingsServer.cs b/Ryujinx.HLE/HOS/Services/Set/ISettingsServer.cs index 1be04a5da7..fe1b30a811 100644 --- a/Ryujinx.HLE/HOS/Services/Set/ISettingsServer.cs +++ b/Ryujinx.HLE/HOS/Services/Set/ISettingsServer.cs @@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Set public ISettingsServer() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetLanguageCode }, { 1, GetAvailableLanguageCodes }, diff --git a/Ryujinx.HLE/HOS/Services/Set/ISystemSettingsServer.cs b/Ryujinx.HLE/HOS/Services/Set/ISystemSettingsServer.cs index fdd9136a18..38773617da 100644 --- a/Ryujinx.HLE/HOS/Services/Set/ISystemSettingsServer.cs +++ b/Ryujinx.HLE/HOS/Services/Set/ISystemSettingsServer.cs @@ -18,7 +18,7 @@ namespace Ryujinx.HLE.HOS.Services.Set public ISystemSettingsServer() { - _commands = new Dictionary() + _commands = new Dictionary { { 3, GetFirmwareVersion }, { 4, GetFirmwareVersion2 }, diff --git a/Ryujinx.HLE/HOS/Services/Set/NxSettings.cs b/Ryujinx.HLE/HOS/Services/Set/NxSettings.cs index de39cf6e3b..12cc5f812b 100644 --- a/Ryujinx.HLE/HOS/Services/Set/NxSettings.cs +++ b/Ryujinx.HLE/HOS/Services/Set/NxSettings.cs @@ -5,7 +5,7 @@ namespace Ryujinx.HLE.HOS.Services.Set internal static class NxSettings { //Generated automatically from a Switch 3.0 config file (Tid: 0100000000000818). - public static Dictionary Settings = new Dictionary() + public static Dictionary Settings = new Dictionary { { "account!na_required_for_network_service", true }, { "account.daemon!background_awaking_periodicity", 10800 }, diff --git a/Ryujinx.HLE/HOS/Services/Sfdnsres/IResolver.cs b/Ryujinx.HLE/HOS/Services/Sfdnsres/IResolver.cs index af12d79d2a..4fb7d27f03 100644 --- a/Ryujinx.HLE/HOS/Services/Sfdnsres/IResolver.cs +++ b/Ryujinx.HLE/HOS/Services/Sfdnsres/IResolver.cs @@ -18,7 +18,7 @@ namespace Ryujinx.HLE.HOS.Services.Sfdnsres public IResolver() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, SetDnsAddressesPrivate }, { 1, GetDnsAddressesPrivate }, diff --git a/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs b/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs index 94bdd168e8..ed210b597a 100644 --- a/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs +++ b/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs @@ -15,7 +15,7 @@ namespace Ryujinx.HLE.HOS.Services.Sm public IUserInterface() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, Initialize }, { 1, GetService } diff --git a/Ryujinx.HLE/HOS/Services/Spl/IRandomInterface.cs b/Ryujinx.HLE/HOS/Services/Spl/IRandomInterface.cs index d5abc1ef3a..32579cdbd2 100644 --- a/Ryujinx.HLE/HOS/Services/Spl/IRandomInterface.cs +++ b/Ryujinx.HLE/HOS/Services/Spl/IRandomInterface.cs @@ -15,7 +15,7 @@ namespace Ryujinx.HLE.HOS.Services.Spl public IRandomInterface() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetRandomBytes } }; diff --git a/Ryujinx.HLE/HOS/Services/Ssl/ISslContext.cs b/Ryujinx.HLE/HOS/Services/Ssl/ISslContext.cs index cdee8d6676..d7b9df6a97 100644 --- a/Ryujinx.HLE/HOS/Services/Ssl/ISslContext.cs +++ b/Ryujinx.HLE/HOS/Services/Ssl/ISslContext.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Ssl public ISslContext() { - _commands = new Dictionary() + _commands = new Dictionary { //... }; diff --git a/Ryujinx.HLE/HOS/Services/Ssl/ISslService.cs b/Ryujinx.HLE/HOS/Services/Ssl/ISslService.cs index d2ba1cd3b4..38939e6d5e 100644 --- a/Ryujinx.HLE/HOS/Services/Ssl/ISslService.cs +++ b/Ryujinx.HLE/HOS/Services/Ssl/ISslService.cs @@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Ssl public ISslService() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, CreateContext }, { 5, SetInterfaceVersion } diff --git a/Ryujinx.HLE/HOS/Services/Time/IStaticService.cs b/Ryujinx.HLE/HOS/Services/Time/IStaticService.cs index 2fefd285a3..3e74691d6f 100644 --- a/Ryujinx.HLE/HOS/Services/Time/IStaticService.cs +++ b/Ryujinx.HLE/HOS/Services/Time/IStaticService.cs @@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Time public IStaticService() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetStandardUserSystemClock }, { 1, GetStandardNetworkSystemClock }, diff --git a/Ryujinx.HLE/HOS/Services/Time/ISteadyClock.cs b/Ryujinx.HLE/HOS/Services/Time/ISteadyClock.cs index b3e4adb135..8bb8b7819e 100644 --- a/Ryujinx.HLE/HOS/Services/Time/ISteadyClock.cs +++ b/Ryujinx.HLE/HOS/Services/Time/ISteadyClock.cs @@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Time public ISteadyClock() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetCurrentTimePoint }, { 1, GetTestOffset }, diff --git a/Ryujinx.HLE/HOS/Services/Time/ISystemClock.cs b/Ryujinx.HLE/HOS/Services/Time/ISystemClock.cs index 2b2e620edd..940a2b739a 100644 --- a/Ryujinx.HLE/HOS/Services/Time/ISystemClock.cs +++ b/Ryujinx.HLE/HOS/Services/Time/ISystemClock.cs @@ -24,7 +24,7 @@ namespace Ryujinx.HLE.HOS.Services.Time public ISystemClock(SystemClockType clockType) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetCurrentTime }, { 1, SetCurrentTime }, diff --git a/Ryujinx.HLE/HOS/Services/Time/ITimeZoneService.cs b/Ryujinx.HLE/HOS/Services/Time/ITimeZoneService.cs index 4c6dc81e67..18b53039c6 100644 --- a/Ryujinx.HLE/HOS/Services/Time/ITimeZoneService.cs +++ b/Ryujinx.HLE/HOS/Services/Time/ITimeZoneService.cs @@ -20,7 +20,7 @@ namespace Ryujinx.HLE.HOS.Services.Time public ITimeZoneService() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetDeviceLocationName }, { 1, SetDeviceLocationName }, diff --git a/Ryujinx.HLE/HOS/Services/Vi/IApplicationDisplayService.cs b/Ryujinx.HLE/HOS/Services/Vi/IApplicationDisplayService.cs index 3c7f8ae005..aa5943f27d 100644 --- a/Ryujinx.HLE/HOS/Services/Vi/IApplicationDisplayService.cs +++ b/Ryujinx.HLE/HOS/Services/Vi/IApplicationDisplayService.cs @@ -20,7 +20,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi public IApplicationDisplayService() { - _commands = new Dictionary() + _commands = new Dictionary { { 100, GetRelayService }, { 101, GetSystemDisplayService }, diff --git a/Ryujinx.HLE/HOS/Services/Vi/IApplicationRootService.cs b/Ryujinx.HLE/HOS/Services/Vi/IApplicationRootService.cs index dd33d3c8bd..4d06368746 100644 --- a/Ryujinx.HLE/HOS/Services/Vi/IApplicationRootService.cs +++ b/Ryujinx.HLE/HOS/Services/Vi/IApplicationRootService.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi public IApplicationRootService() { - _commands = new Dictionary() + _commands = new Dictionary { { 0, GetDisplayService } }; diff --git a/Ryujinx.HLE/HOS/Services/Vi/IHOSBinderDriver.cs b/Ryujinx.HLE/HOS/Services/Vi/IHOSBinderDriver.cs index 5ea9671954..49b099452d 100644 --- a/Ryujinx.HLE/HOS/Services/Vi/IHOSBinderDriver.cs +++ b/Ryujinx.HLE/HOS/Services/Vi/IHOSBinderDriver.cs @@ -19,7 +19,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi public IhosBinderDriver(Horizon system, IGalRenderer renderer) { - _commands = new Dictionary() + _commands = new Dictionary { { 0, TransactParcel }, { 1, AdjustRefcount }, diff --git a/Ryujinx.HLE/HOS/Services/Vi/IManagerDisplayService.cs b/Ryujinx.HLE/HOS/Services/Vi/IManagerDisplayService.cs index 10cf062078..bfcd669e22 100644 --- a/Ryujinx.HLE/HOS/Services/Vi/IManagerDisplayService.cs +++ b/Ryujinx.HLE/HOS/Services/Vi/IManagerDisplayService.cs @@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi public IManagerDisplayService() { - _commands = new Dictionary() + _commands = new Dictionary { { 2010, CreateManagedLayer }, { 2011, DestroyManagedLayer }, diff --git a/Ryujinx.HLE/HOS/Services/Vi/IManagerRootService.cs b/Ryujinx.HLE/HOS/Services/Vi/IManagerRootService.cs index 8d48ef6e1c..b131faca74 100644 --- a/Ryujinx.HLE/HOS/Services/Vi/IManagerRootService.cs +++ b/Ryujinx.HLE/HOS/Services/Vi/IManagerRootService.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi public IManagerRootService() { - _commands = new Dictionary() + _commands = new Dictionary { { 2, GetDisplayService } }; diff --git a/Ryujinx.HLE/HOS/Services/Vi/ISystemDisplayService.cs b/Ryujinx.HLE/HOS/Services/Vi/ISystemDisplayService.cs index b0e2bd1e9a..547b044485 100644 --- a/Ryujinx.HLE/HOS/Services/Vi/ISystemDisplayService.cs +++ b/Ryujinx.HLE/HOS/Services/Vi/ISystemDisplayService.cs @@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi public ISystemDisplayService() { - _commands = new Dictionary() + _commands = new Dictionary { { 2205, SetLayerZ }, { 2207, SetLayerVisibility }, diff --git a/Ryujinx.HLE/HOS/Services/Vi/ISystemRootService.cs b/Ryujinx.HLE/HOS/Services/Vi/ISystemRootService.cs index 12ca01587f..a7256420d8 100644 --- a/Ryujinx.HLE/HOS/Services/Vi/ISystemRootService.cs +++ b/Ryujinx.HLE/HOS/Services/Vi/ISystemRootService.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi public ISystemRootService() { - _commands = new Dictionary() + _commands = new Dictionary { { 1, GetDisplayService } }; diff --git a/Ryujinx.HLE/HOS/Services/Vi/NvFlinger.cs b/Ryujinx.HLE/HOS/Services/Vi/NvFlinger.cs index 2aac5e7b12..363f507b64 100644 --- a/Ryujinx.HLE/HOS/Services/Vi/NvFlinger.cs +++ b/Ryujinx.HLE/HOS/Services/Vi/NvFlinger.cs @@ -70,7 +70,7 @@ namespace Ryujinx.HLE.HOS.Services.Android public NvFlinger(IGalRenderer renderer, KEvent binderEvent) { - _commands = new Dictionary<(string, int), ServiceProcessParcel>() + _commands = new Dictionary<(string, int), ServiceProcessParcel> { { ("android.gui.IGraphicBufferProducer", 0x1), GbpRequestBuffer }, { ("android.gui.IGraphicBufferProducer", 0x3), GbpDequeueBuffer },