diff options
| author | Ac_K <Acoustik666@gmail.com> | 2021-09-15 01:24:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-15 01:24:49 +0200 |
| commit | 5d08e9b495a2315e8a4758a8123466665085d044 (patch) | |
| tree | 54a189acc7d9589e9678cc431b1bc9cca40682d0 /Ryujinx.HLE/Utilities/StructWriter.cs | |
| parent | 3f2486342b3ef4610b6af6a52624614d2a7ad8ae (diff) | |
hos: Cleanup the project (#2634)
* hos: Cleanup the project
Since a lot of changes has been done on the HOS project, there are some leftover here and there, or class just used in one service, things at wrong places, and more.
This PR fixes that, additionnally to that, I've realigned some vars because I though it make the code more readable.
* Address gdkchan feedback
* addresses Thog feedback
* Revert ElfSymbol
Diffstat (limited to 'Ryujinx.HLE/Utilities/StructWriter.cs')
| -rw-r--r-- | Ryujinx.HLE/Utilities/StructWriter.cs | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/Ryujinx.HLE/Utilities/StructWriter.cs b/Ryujinx.HLE/Utilities/StructWriter.cs deleted file mode 100644 index 39644db5..00000000 --- a/Ryujinx.HLE/Utilities/StructWriter.cs +++ /dev/null @@ -1,31 +0,0 @@ -using Ryujinx.Cpu; -using Ryujinx.Memory; -using System.Runtime.InteropServices; - -namespace Ryujinx.HLE.Utilities -{ - class StructWriter - { - private IVirtualMemoryManager _memory; - - public ulong Position { get; private set; } - - public StructWriter(IVirtualMemoryManager memory, ulong position) - { - _memory = memory; - Position = position; - } - - public void Write<T>(T value) where T : struct - { - MemoryHelper.Write(_memory, Position, value); - - Position += (ulong)Marshal.SizeOf<T>(); - } - - public void SkipBytes(ulong count) - { - Position += count; - } - } -} |
