diff options
| author | Alex Barney <thealexbarney@gmail.com> | 2018-12-04 14:23:37 -0600 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-12-04 18:23:37 -0200 |
| commit | 85dbb9559ad317a657dafd24da27fec4b3f5250f (patch) | |
| tree | ecd92931bc2146e549484d9a3af308469089ad4e /Ryujinx.HLE/Switch.cs | |
| parent | c86aacde76b5f8e503e2b412385c8491ecc86b3b (diff) | |
Adjust naming conventions and general refactoring in HLE Project (#490)
* Rename enum fields
* Naming conventions
* Remove unneeded ".this"
* Remove unneeded semicolons
* Remove unused Usings
* Don't use var
* Remove unneeded enum underlying types
* Explicitly label class visibility
* Remove unneeded @ prefixes
* Remove unneeded commas
* Remove unneeded if expressions
* Method doesn't use unsafe code
* Remove unneeded casts
* Initialized objects don't need an empty constructor
* Remove settings from DotSettings
* Revert "Explicitly label class visibility"
This reverts commit ad5eb5787cc5b27a4631cd46ef5f551c4ae95e51.
* Small changes
* Revert external enum renaming
* Changes from feedback
* Remove unneeded property setters
Diffstat (limited to 'Ryujinx.HLE/Switch.cs')
| -rw-r--r-- | Ryujinx.HLE/Switch.cs | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/Ryujinx.HLE/Switch.cs b/Ryujinx.HLE/Switch.cs index 5b3b36d0..7357b84c 100644 --- a/Ryujinx.HLE/Switch.cs +++ b/Ryujinx.HLE/Switch.cs @@ -11,43 +11,43 @@ namespace Ryujinx.HLE { public class Switch : IDisposable { - internal IAalOutput AudioOut { get; private set; } + internal IAalOutput AudioOut { get; } - internal DeviceMemory Memory { get; private set; } + internal DeviceMemory Memory { get; } - internal NvGpu Gpu { get; private set; } + internal NvGpu Gpu { get; } - internal VirtualFileSystem FileSystem { get; private set; } + internal VirtualFileSystem FileSystem { get; } - public Horizon System { get; private set; } + public Horizon System { get; } - public PerformanceStatistics Statistics { get; private set; } + public PerformanceStatistics Statistics { get; } - public Hid Hid { get; private set; } + public Hid Hid { get; } public bool EnableDeviceVsync { get; set; } = true; - public AutoResetEvent VsyncEvent { get; private set; } + public AutoResetEvent VsyncEvent { get; } public event EventHandler Finish; - public Switch(IGalRenderer Renderer, IAalOutput AudioOut) + public Switch(IGalRenderer renderer, IAalOutput audioOut) { - if (Renderer == null) + if (renderer == null) { - throw new ArgumentNullException(nameof(Renderer)); + throw new ArgumentNullException(nameof(renderer)); } - if (AudioOut == null) + if (audioOut == null) { - throw new ArgumentNullException(nameof(AudioOut)); + throw new ArgumentNullException(nameof(audioOut)); } - this.AudioOut = AudioOut; + AudioOut = audioOut; Memory = new DeviceMemory(); - Gpu = new NvGpu(Renderer); + Gpu = new NvGpu(renderer); FileSystem = new VirtualFileSystem(); @@ -60,29 +60,29 @@ namespace Ryujinx.HLE VsyncEvent = new AutoResetEvent(true); } - public void LoadCart(string ExeFsDir, string RomFsFile = null) + public void LoadCart(string exeFsDir, string romFsFile = null) { - System.LoadCart(ExeFsDir, RomFsFile); + System.LoadCart(exeFsDir, romFsFile); } - public void LoadXci(string XciFile) + public void LoadXci(string xciFile) { - System.LoadXci(XciFile); + System.LoadXci(xciFile); } - public void LoadNca(string NcaFile) + public void LoadNca(string ncaFile) { - System.LoadNca(NcaFile); + System.LoadNca(ncaFile); } - public void LoadNsp(string NspFile) + public void LoadNsp(string nspFile) { - System.LoadNsp(NspFile); + System.LoadNsp(nspFile); } - public void LoadProgram(string FileName) + public void LoadProgram(string fileName) { - System.LoadProgram(FileName); + System.LoadProgram(fileName); } public bool WaitFifo() @@ -107,9 +107,9 @@ namespace Ryujinx.HLE Dispose(true); } - protected virtual void Dispose(bool Disposing) + protected virtual void Dispose(bool disposing) { - if (Disposing) + if (disposing) { System.Dispose(); |
