mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Make Encoding a private field only for IReadOnlyFilesystem implementors.
This commit is contained in:
@@ -65,7 +65,7 @@ public sealed partial class NintendoPlugin
|
||||
public void GetInformation(IMediaImage imagePlugin, Partition partition, Encoding encoding, out string information,
|
||||
out FileSystem metadata)
|
||||
{
|
||||
Encoding = encoding ?? Encoding.GetEncoding("shift_jis");
|
||||
encoding ??= Encoding.GetEncoding("shift_jis");
|
||||
var sbInformation = new StringBuilder();
|
||||
information = "";
|
||||
metadata = new FileSystem();
|
||||
@@ -98,7 +98,7 @@ public sealed partial class NintendoPlugin
|
||||
fields.StreamBufferSize = header[9];
|
||||
byte[] temp = new byte[64];
|
||||
Array.Copy(header, 0x20, temp, 0, 64);
|
||||
fields.Title = StringHandlers.CToString(temp, Encoding);
|
||||
fields.Title = StringHandlers.CToString(temp, encoding);
|
||||
|
||||
if(!wii)
|
||||
{
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
// ****************************************************************************/
|
||||
|
||||
using System;
|
||||
using System.Text;
|
||||
using Aaru.CommonTypes.Interfaces;
|
||||
|
||||
namespace Aaru.Filesystems;
|
||||
@@ -36,8 +35,6 @@ namespace Aaru.Filesystems;
|
||||
/// <summary>Implements detection of the filesystem used by Nintendo Gamecube and Wii discs</summary>
|
||||
public sealed partial class NintendoPlugin : IFilesystem
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public Encoding Encoding { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public string Name => Localization.NintendoPlugin_Name;
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user