Initialized objects don't need an empty constructor

This commit is contained in:
Alex Barney 2018-12-01 14:51:40 -06:00
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>(); _contentDictionary = new SortedDictionary<(ulong, ContentType), string>();
_locationEntries = new Dictionary<StorageId, LinkedList<LocationEntry>>(); _locationEntries = new Dictionary<StorageId, LinkedList<LocationEntry>>();
_sharedFontTitleDictionary = new Dictionary<string, long>() _sharedFontTitleDictionary = new Dictionary<string, long>
{ {
{ "FontStandard", 0x0100000000000811 }, { "FontStandard", 0x0100000000000811 },
{ "FontChineseSimplified", 0x0100000000000814 }, { "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.JapanUsEurope, CreateFont("FontStandard") },
{ SharedFontType.SimplifiedChinese, CreateFont("FontChineseSimplified") }, { SharedFontType.SimplifiedChinese, CreateFont("FontChineseSimplified") },

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Caps
public IAlbumAccessorService() 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() 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() 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() public IFriendService()
{ {
_commands = new Dictionary<int, ServiceProcessRequest>() _commands = new Dictionary<int, ServiceProcessRequest>
{ {
{ 10101, GetFriendList }, { 10101, GetFriendList },
{ 10601, DeclareCloseOnlinePlaySession }, { 10601, DeclareCloseOnlinePlaySession },
@ -31,7 +31,7 @@ namespace Ryujinx.HLE.HOS.Services.Friend
int unknown0 = context.RequestData.ReadInt32(); int unknown0 = context.RequestData.ReadInt32();
FriendFilter filter = new FriendFilter() FriendFilter filter = new FriendFilter
{ {
PresenceStatus = (PresenceStatusFilter)context.RequestData.ReadInt32(), PresenceStatus = (PresenceStatusFilter)context.RequestData.ReadInt32(),
IsFavoriteOnly = context.RequestData.ReadBoolean(), IsFavoriteOnly = context.RequestData.ReadBoolean(),

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -41,7 +41,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
public IHidServer(Horizon system) public IHidServer(Horizon system)
{ {
_commands = new Dictionary<int, ServiceProcessRequest>() _commands = new Dictionary<int, ServiceProcessRequest>
{ {
{ 0, CreateAppletResource }, { 0, CreateAppletResource },
{ 1, ActivateDebugPad }, { 1, ActivateDebugPad },
@ -429,7 +429,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
{ {
int sixAxisSensorHandle = context.RequestData.ReadInt32(); int sixAxisSensorHandle = context.RequestData.ReadInt32();
_sensorFusionParams = new HidSensorFusionParameters() _sensorFusionParams = new HidSensorFusionParameters
{ {
RevisePower = context.RequestData.ReadInt32(), RevisePower = context.RequestData.ReadInt32(),
ReviseRange = context.RequestData.ReadInt32() ReviseRange = context.RequestData.ReadInt32()
@ -484,7 +484,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
{ {
int sixAxisSensorHandle = context.RequestData.ReadInt32(); int sixAxisSensorHandle = context.RequestData.ReadInt32();
_accelerometerParams = new HidAccelerometerParameters() _accelerometerParams = new HidAccelerometerParameters
{ {
X = context.RequestData.ReadInt32(), X = context.RequestData.ReadInt32(),
Y = context.RequestData.ReadInt32() Y = context.RequestData.ReadInt32()

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Ncm
public IContentManager() 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() 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) public IUser(Horizon system)
{ {
_commands = new Dictionary<int, ServiceProcessRequest>() _commands = new Dictionary<int, ServiceProcessRequest>
{ {
{ 0, Initialize }, { 0, Initialize },
{ 17, AttachActivateEvent }, { 17, AttachActivateEvent },

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -21,7 +21,7 @@ namespace Ryujinx.HLE.HOS.Services.Nv
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands; public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
private static Dictionary<string, IoctlProcessor> _ioctlProcessors = private static Dictionary<string, IoctlProcessor> _ioctlProcessors =
new Dictionary<string, IoctlProcessor>() new Dictionary<string, IoctlProcessor>
{ {
{ "/dev/nvhost-as-gpu", ProcessIoctlNvGpuAS }, { "/dev/nvhost-as-gpu", ProcessIoctlNvGpuAS },
{ "/dev/nvhost-ctrl", ProcessIoctlNvHostCtrl }, { "/dev/nvhost-ctrl", ProcessIoctlNvHostCtrl },
@ -36,7 +36,7 @@ namespace Ryujinx.HLE.HOS.Services.Nv
public INvDrvServices(Horizon system) public INvDrvServices(Horizon system)
{ {
_commands = new Dictionary<int, ServiceProcessRequest>() _commands = new Dictionary<int, ServiceProcessRequest>
{ {
{ 0, Open }, { 0, Open },
{ 1, Ioctl }, { 1, Ioctl },

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -5,7 +5,7 @@ namespace Ryujinx.HLE.HOS.Services.Set
internal static class NxSettings internal static class NxSettings
{ {
//Generated automatically from a Switch 3.0 config file (Tid: 0100000000000818). //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!na_required_for_network_service", true },
{ "account.daemon!background_awaking_periodicity", 10800 }, { "account.daemon!background_awaking_periodicity", 10800 },

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -70,7 +70,7 @@ namespace Ryujinx.HLE.HOS.Services.Android
public NvFlinger(IGalRenderer renderer, KEvent binderEvent) 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", 0x1), GbpRequestBuffer },
{ ("android.gui.IGraphicBufferProducer", 0x3), GbpDequeueBuffer }, { ("android.gui.IGraphicBufferProducer", 0x3), GbpDequeueBuffer },