mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Rename "Savefile" namespace to "Save"
This commit is contained in:
parent
a27c9f78c7
commit
ae649182ce
16 changed files with 19 additions and 18 deletions
|
@ -1,6 +1,6 @@
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace LibHac.Savefile
|
namespace LibHac.Save
|
||||||
{
|
{
|
||||||
public class AllocationTable
|
public class AllocationTable
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace LibHac.Savefile
|
namespace LibHac.Save
|
||||||
{
|
{
|
||||||
public class AllocationTableIterator
|
public class AllocationTableIterator
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace LibHac.Savefile
|
namespace LibHac.Save
|
||||||
{
|
{
|
||||||
public class AllocationTableStream : Stream
|
public class AllocationTableStream : Stream
|
||||||
{
|
{
|
|
@ -2,7 +2,7 @@
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace LibHac.Savefile
|
namespace LibHac.Save
|
||||||
{
|
{
|
||||||
public class DuplexBitmap
|
public class DuplexBitmap
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace LibHac.Savefile
|
namespace LibHac.Save
|
||||||
{
|
{
|
||||||
public class DuplexFs : Stream
|
public class DuplexFs : Stream
|
||||||
{
|
{
|
|
@ -3,7 +3,7 @@ using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace LibHac.Savefile
|
namespace LibHac.Save
|
||||||
{
|
{
|
||||||
[DebuggerDisplay("{" + nameof(FullPath) + "}")]
|
[DebuggerDisplay("{" + nameof(FullPath) + "}")]
|
||||||
public abstract class FsEntry
|
public abstract class FsEntry
|
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace LibHac.Savefile
|
namespace LibHac.Save
|
||||||
{
|
{
|
||||||
public class Header
|
public class Header
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace LibHac.Savefile
|
namespace LibHac.Save
|
||||||
{
|
{
|
||||||
public class JournalStream : Stream
|
public class JournalStream : Stream
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace LibHac.Savefile
|
namespace LibHac.Save
|
||||||
{
|
{
|
||||||
public class LayeredDuplexFs : Stream
|
public class LayeredDuplexFs : Stream
|
||||||
{
|
{
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace LibHac.Savefile
|
namespace LibHac.Save
|
||||||
{
|
{
|
||||||
public class RemapStream : Stream
|
public class RemapStream : Stream
|
||||||
{
|
{
|
|
@ -4,7 +4,7 @@ using System.Security.Cryptography;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using LibHac.Streams;
|
using LibHac.Streams;
|
||||||
|
|
||||||
namespace LibHac.Savefile
|
namespace LibHac.Save
|
||||||
{
|
{
|
||||||
public class Savefile
|
public class Savefile
|
||||||
{
|
{
|
|
@ -4,6 +4,7 @@ using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using LibHac.Save;
|
||||||
using LibHac.Streams;
|
using LibHac.Streams;
|
||||||
|
|
||||||
namespace LibHac
|
namespace LibHac
|
||||||
|
@ -16,7 +17,7 @@ namespace LibHac
|
||||||
public string SaveDir { get; }
|
public string SaveDir { get; }
|
||||||
|
|
||||||
public Dictionary<string, Nca> Ncas { get; } = new Dictionary<string, Nca>(StringComparer.OrdinalIgnoreCase);
|
public Dictionary<string, Nca> Ncas { get; } = new Dictionary<string, Nca>(StringComparer.OrdinalIgnoreCase);
|
||||||
public Dictionary<string, Savefile.Savefile> Saves { get; } = new Dictionary<string, Savefile.Savefile>(StringComparer.OrdinalIgnoreCase);
|
public Dictionary<string, Savefile> Saves { get; } = new Dictionary<string, Savefile>(StringComparer.OrdinalIgnoreCase);
|
||||||
public Dictionary<ulong, Title> Titles { get; } = new Dictionary<ulong, Title>();
|
public Dictionary<ulong, Title> Titles { get; } = new Dictionary<ulong, Title>();
|
||||||
public Dictionary<ulong, Application> Applications { get; } = new Dictionary<ulong, Application>();
|
public Dictionary<ulong, Application> Applications { get; } = new Dictionary<ulong, Application>();
|
||||||
|
|
||||||
|
@ -117,7 +118,7 @@ namespace LibHac
|
||||||
|
|
||||||
foreach (string file in files)
|
foreach (string file in files)
|
||||||
{
|
{
|
||||||
Savefile.Savefile save = null;
|
Savefile save = null;
|
||||||
string saveName = Path.GetFileNameWithoutExtension(file);
|
string saveName = Path.GetFileNameWithoutExtension(file);
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -126,7 +127,7 @@ namespace LibHac
|
||||||
|
|
||||||
string sdPath = "/" + Util.GetRelativePath(file, SaveDir).Replace('\\', '/');
|
string sdPath = "/" + Util.GetRelativePath(file, SaveDir).Replace('\\', '/');
|
||||||
var nax0 = new Nax0(Keyset, stream, sdPath, false);
|
var nax0 = new Nax0(Keyset, stream, sdPath, false);
|
||||||
save = new Savefile.Savefile(Keyset, nax0.Stream, IntegrityCheckLevel.None);
|
save = new Savefile(Keyset, nax0.Stream, IntegrityCheckLevel.None);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using LibHac;
|
using LibHac;
|
||||||
using LibHac.Nand;
|
using LibHac.Nand;
|
||||||
using LibHac.Savefile;
|
using LibHac.Save;
|
||||||
|
|
||||||
namespace NandReader
|
namespace NandReader
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,7 +7,7 @@ using GalaSoft.MvvmLight;
|
||||||
using GalaSoft.MvvmLight.Command;
|
using GalaSoft.MvvmLight.Command;
|
||||||
using LibHac;
|
using LibHac;
|
||||||
using LibHac.Nand;
|
using LibHac.Nand;
|
||||||
using LibHac.Savefile;
|
using LibHac.Save;
|
||||||
using LibHac.Streams;
|
using LibHac.Streams;
|
||||||
|
|
||||||
namespace NandReaderGui.ViewModel
|
namespace NandReaderGui.ViewModel
|
||||||
|
|
|
@ -3,7 +3,7 @@ using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using LibHac;
|
using LibHac;
|
||||||
using LibHac.Savefile;
|
using LibHac.Save;
|
||||||
using static hactoolnet.Print;
|
using static hactoolnet.Print;
|
||||||
|
|
||||||
namespace hactoolnet
|
namespace hactoolnet
|
||||||
|
|
|
@ -4,7 +4,7 @@ using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using LibHac;
|
using LibHac;
|
||||||
using LibHac.Savefile;
|
using LibHac.Save;
|
||||||
|
|
||||||
namespace hactoolnet
|
namespace hactoolnet
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue