Initialized objects don't need an empty constructor

This commit is contained in:
Alex Barney 2018-12-01 14:51:40 -06:00
parent 9ab6334144
commit 1f745c600f
96 changed files with 101 additions and 101 deletions

View file

@ -22,7 +22,7 @@ namespace Ryujinx.HLE.FileSystem.Content
_contentDictionary = new SortedDictionary<(ulong, ContentType), string>();
_locationEntries = new Dictionary<StorageId, LinkedList<LocationEntry>>();
_sharedFontTitleDictionary = new Dictionary<string, long>()
_sharedFontTitleDictionary = new Dictionary<string, long>
{
{ "FontStandard", 0x0100000000000811 },
{ "FontChineseSimplified", 0x0100000000000814 },

View file

@ -122,7 +122,7 @@ namespace Ryujinx.HLE.HOS.Font
}
}
_fontData = new Dictionary<SharedFontType, FontInfo>()
_fontData = new Dictionary<SharedFontType, FontInfo>
{
{ SharedFontType.JapanUsEurope, CreateFont("FontStandard") },
{ SharedFontType.SimplifiedChinese, CreateFont("FontChineseSimplified") },

View file

@ -41,7 +41,7 @@ namespace Ryujinx.HLE.HOS.Kernel
public SvcHandler(Switch device, KProcess process)
{
_svcFuncs = new Dictionary<int, SvcFunc>()
_svcFuncs = new Dictionary<int, SvcFunc>
{
{ 0x01, SvcSetHeapSize },
{ 0x03, SvcSetMemoryAttribute },

View file

@ -16,7 +16,7 @@ namespace Ryujinx.HLE.HOS.Services.Acc
public IAccountService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetUserCount },
{ 1, GetUserExistence },

View file

@ -15,7 +15,7 @@ namespace Ryujinx.HLE.HOS.Services.Acc
public IManagerForApplication(UInt128 uuid)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, CheckAvailability },
{ 1, GetAccountId }

View file

@ -22,7 +22,7 @@ namespace Ryujinx.HLE.HOS.Services.Acc
public IProfile(UserProfile profile)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, Get },
{ 1, GetBase },

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public IAllSystemAppletProxiesService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 100, OpenSystemAppletProxy }
};

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public IApplicationCreator()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
//...
};

View file

@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public IApplicationFunctions()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 1, PopLaunchParameter },
{ 20, EnsureSaveData },

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public IApplicationProxy()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetCommonStateGetter },
{ 1, GetSelfController },

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public IApplicationProxyService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, OpenApplicationProxy }
};

View file

@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public IAudioController()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, SetExpectedMasterVolume },
{ 1, GetMainAppletExpectedMasterVolume },

View file

@ -18,7 +18,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public ICommonStateGetter(Horizon system)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetEventHandle },
{ 1, ReceiveMessage },

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public IDebugFunctions()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
//...
};

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public IDisplayController()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
//...
};

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public IGlobalStateController()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
//...
};

View file

@ -16,7 +16,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public IHomeMenuFunctions(Horizon system)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 10, RequestToGetForeground },
{ 21, GetPopFromGeneralChannelEvent }

View file

@ -16,7 +16,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public ILibraryAppletAccessor(Horizon system)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetAppletStateChangedEvent },
{ 10, Start },

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public ILibraryAppletCreator()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, CreateLibraryApplet },
{ 10, CreateStorage }

View file

@ -18,7 +18,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public ISelfController(Horizon system)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, Exit },
{ 1, LockExit },

View file

@ -13,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public IStorage(byte[] data)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, Open }
};

View file

@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public IStorageAccessor(IStorage storage)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetSize },
{ 10, Write },

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public ISystemAppletProxy()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetCommonStateGetter },
{ 1, GetSelfController },

View file

@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public IWindowController()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 1, GetAppletResourceUserId },
{ 10, AcquireForegroundRights }

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Apm
public IManager()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, OpenSession }
};

View file

@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Apm
public ISession()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, SetPerformanceConfiguration },
{ 1, GetPerformanceConfiguration }

View file

@ -21,7 +21,7 @@ namespace Ryujinx.HLE.HOS.Services.Aud.AudioOut
public IAudioOut(IAalOutput audioOut, KEvent releaseEvent, int track)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetAudioOutState },
{ 1, StartAudioOut },

View file

@ -48,7 +48,7 @@ namespace Ryujinx.HLE.HOS.Services.Aud.AudioRenderer
IAalOutput audioOut,
AudioRendererParameter Params)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetSampleRate },
{ 1, GetSampleCount },

View file

@ -18,7 +18,7 @@ namespace Ryujinx.HLE.HOS.Services.Aud
public IAudioDevice(Horizon system)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, ListAudioDeviceName },
{ 1, SetAudioDeviceOutputVolume },

View file

@ -25,7 +25,7 @@ namespace Ryujinx.HLE.HOS.Services.Aud
public IAudioOutManager()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, ListAudioOuts },
{ 1, OpenAudioOut },

View file

@ -26,7 +26,7 @@ namespace Ryujinx.HLE.HOS.Services.Aud
public IAudioRendererManager()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, OpenAudioRenderer },
{ 1, GetAudioRendererWorkBufferSize },

View file

@ -21,7 +21,7 @@ namespace Ryujinx.HLE.HOS.Services.Aud
public IHardwareOpusDecoder(int sampleRate, int channelsCount)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, DecodeInterleaved },
{ 4, DecodeInterleavedWithPerf }

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Aud
public IHardwareOpusDecoderManager()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, Initialize },
{ 1, GetWorkBufferSize }

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Bcat
public IBcatService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
//...
};

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Bcat
public IDeliveryCacheStorageService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
//...
};

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Bcat
public IServiceCreator()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, CreateBcatService },
{ 1, CreateDeliveryCacheStorageService }

View file

@ -105,7 +105,7 @@ namespace Ryujinx.HLE.HOS.Services.Bsd
public IClient(bool isPrivileged)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, RegisterClient },
{ 1, StartMonitoring },

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Caps
public IAlbumAccessorService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
//...
};

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Caps
public IScreenshotService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
//...
};

View file

@ -13,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Services.Es
public IeTicketService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
};

View file

@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Friend
public IFriendService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 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(),

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Friend
public IServiceCreator()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, CreateFriendService }
};

View file

@ -27,7 +27,7 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv
public IDirectory(string directoryPath, int flags, IFileSystemProvider provider)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, Read },
{ 1, GetEntryCount }

View file

@ -19,7 +19,7 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv
public IFile(Stream baseStream, string hostPath)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, Read },
{ 1, Write },

View file

@ -23,7 +23,7 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv
public IFileSystem(string path, IFileSystemProvider provider)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, CreateFile },
{ 1, DeleteFile },

View file

@ -20,7 +20,7 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv
public IFileSystemProxy()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 1, Initialize },
{ 8, OpenFileSystemWithId },

View file

@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv
public IStorage(Stream baseStream)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, Read }
};

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
public IActiveApplicationDeviceList()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, ActivateVibrationDevice }
};

View file

@ -15,7 +15,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
public IAppletResource(KSharedMemory hidSharedMem)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetSharedMemoryHandle }
};

View file

@ -41,7 +41,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
public IHidServer(Horizon system)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 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()

View file

@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Irs
public IIrSensorServer()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 302, ActivateIrsensor },
{ 303, DeactivateIrsensor }

View file

@ -112,7 +112,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldr
public IRoInterface()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, LoadNro },
{ 1, UnloadNro },

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Lm
public ILogService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, Initialize }
};

View file

@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Lm
public ILogger()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, Log }
};

View file

@ -20,7 +20,7 @@ namespace Ryujinx.HLE.HOS.Services.Lr
public ILocationResolver(StorageId storageId)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, ResolveProgramPath },
{ 1, RedirectProgramPath },

View file

@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Lr
public ILocationResolverManager()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, OpenLocationResolver }
};

View file

@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Mm
public IRequest()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 1, InitializeOld },
{ 4, Initialize },

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Ncm
public IContentManager()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
};

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Ncm
public IContentStorage()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
};

View file

@ -27,7 +27,7 @@ namespace Ryujinx.HLE.HOS.Services.Nfp
public IUser(Horizon system)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, Initialize },
{ 17, AttachActivateEvent },

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Nfp
public IUserManager()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetUserInterface }
};

View file

@ -19,7 +19,7 @@ namespace Ryujinx.HLE.HOS.Services.Nifm
public IGeneralService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 4, CreateRequest },
{ 12, GetCurrentIpAddress }

View file

@ -17,7 +17,7 @@ namespace Ryujinx.HLE.HOS.Services.Nifm
public IRequest(Horizon system)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetRequestState },
{ 1, GetResult },

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Nifm
public IStaticService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 4, CreateGeneralServiceOld },
{ 5, CreateGeneralService }

View file

@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Ns
public IAddOnContentManager()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 2, CountAddOnContent },
{ 3, ListAddOnContent }

View file

@ -13,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Services.Ns
public IApplicationManagerInterface()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
};

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Ns
public IServiceGetterInterface()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
//...
};

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Ns
public ISystemUpdateInterface()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
//...
};

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Ns
public IVulnerabilityManagerInterface()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
//...
};

View file

@ -21,8 +21,8 @@ namespace Ryujinx.HLE.HOS.Services.Nv
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
private static Dictionary<string, IoctlProcessor> _ioctlProcessors =
new Dictionary<string, IoctlProcessor>()
{
new Dictionary<string, IoctlProcessor>
{
{ "/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<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, Open },
{ 1, Ioctl },

View file

@ -16,7 +16,7 @@ namespace Ryujinx.HLE.HOS.Services.Pctl
public IParentalControlService(bool needInitialize = true)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 1, Initialize }
};

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Pctl
public IParentalControlServiceFactory()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, CreateService },
{ 1, CreateServiceWithoutInitialize }

View file

@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Pl
public ISharedFontManager()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, RequestLoad },
{ 1, GetLoadState },

View file

@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Prepo
public IPrepoService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 10101, SaveReportWithUser }
};

View file

@ -19,7 +19,7 @@ namespace Ryujinx.HLE.HOS.Services.Psm
public IPsmServer()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetBatteryChargePercentage },
{ 1, GetChargerType },

View file

@ -16,7 +16,7 @@ namespace Ryujinx.HLE.HOS.Services.Psm
public IPsmSession(Horizon system)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, BindStateChangeEvent },
{ 1, UnbindStateChangeEvent },

View file

@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Set
public ISettingsServer()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetLanguageCode },
{ 1, GetAvailableLanguageCodes },

View file

@ -18,7 +18,7 @@ namespace Ryujinx.HLE.HOS.Services.Set
public ISystemSettingsServer()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 3, GetFirmwareVersion },
{ 4, GetFirmwareVersion2 },

View file

@ -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<string, object> Settings = new Dictionary<string, object>()
public static Dictionary<string, object> Settings = new Dictionary<string, object>
{
{ "account!na_required_for_network_service", true },
{ "account.daemon!background_awaking_periodicity", 10800 },

View file

@ -18,7 +18,7 @@ namespace Ryujinx.HLE.HOS.Services.Sfdnsres
public IResolver()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, SetDnsAddressesPrivate },
{ 1, GetDnsAddressesPrivate },

View file

@ -15,7 +15,7 @@ namespace Ryujinx.HLE.HOS.Services.Sm
public IUserInterface()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, Initialize },
{ 1, GetService }

View file

@ -15,7 +15,7 @@ namespace Ryujinx.HLE.HOS.Services.Spl
public IRandomInterface()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetRandomBytes }
};

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Ssl
public ISslContext()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
//...
};

View file

@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Ssl
public ISslService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, CreateContext },
{ 5, SetInterfaceVersion }

View file

@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Time
public IStaticService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetStandardUserSystemClock },
{ 1, GetStandardNetworkSystemClock },

View file

@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Time
public ISteadyClock()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetCurrentTimePoint },
{ 1, GetTestOffset },

View file

@ -24,7 +24,7 @@ namespace Ryujinx.HLE.HOS.Services.Time
public ISystemClock(SystemClockType clockType)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetCurrentTime },
{ 1, SetCurrentTime },

View file

@ -20,7 +20,7 @@ namespace Ryujinx.HLE.HOS.Services.Time
public ITimeZoneService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetDeviceLocationName },
{ 1, SetDeviceLocationName },

View file

@ -20,7 +20,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi
public IApplicationDisplayService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 100, GetRelayService },
{ 101, GetSystemDisplayService },

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi
public IApplicationRootService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, GetDisplayService }
};

View file

@ -19,7 +19,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi
public IhosBinderDriver(Horizon system, IGalRenderer renderer)
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, TransactParcel },
{ 1, AdjustRefcount },

View file

@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi
public IManagerDisplayService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 2010, CreateManagedLayer },
{ 2011, DestroyManagedLayer },

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi
public IManagerRootService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 2, GetDisplayService }
};

View file

@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi
public ISystemDisplayService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 2205, SetLayerZ },
{ 2207, SetLayerVisibility },

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi
public ISystemRootService()
{
_commands = new Dictionary<int, ServiceProcessRequest>()
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 1, GetDisplayService }
};

View file

@ -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 },