mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
implemented external storage of resource schemes.
This commit is contained in:
@@ -56,6 +56,12 @@ namespace GameRes.Formats.NScripter
|
||||
public string Password { get; set; }
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class NsaScheme : ResourceScheme
|
||||
{
|
||||
public Dictionary<string, string> KnownKeys;
|
||||
}
|
||||
|
||||
public enum Compression
|
||||
{
|
||||
Unknown = 256,
|
||||
@@ -70,19 +76,19 @@ namespace GameRes.Formats.NScripter
|
||||
{
|
||||
public override string Tag { get { return "NSA"; } }
|
||||
|
||||
public static readonly Dictionary<string, string> KnownKeys = new Dictionary<string, string>()
|
||||
{
|
||||
{ "Kimi ga Aruji de Shitsuji ga Ore de",
|
||||
"kopkl;fdsl;kl;mwekopj@pgfd[p;:kl:;,lwret;kl;kolsgfdio@pdsflkl:,rse;:l,;:lpksdfpo" },
|
||||
{ "Kiss yori Amakute Fukai Mono",
|
||||
"dfklmdsgkmlkmljklgfnlsdfnklsdfjkl;sdfmkldfskfsdmklsdfjklfdsjklsdfsdfl;" },
|
||||
};
|
||||
|
||||
public NsaOpener ()
|
||||
{
|
||||
Extensions = new string[] { "nsa", "dat" };
|
||||
}
|
||||
|
||||
public static Dictionary<string, string> KnownKeys = new Dictionary<string, string>();
|
||||
|
||||
public override ResourceScheme Scheme
|
||||
{
|
||||
get { return new NsaScheme { KnownKeys = KnownKeys }; }
|
||||
set { KnownKeys = ((NsaScheme)value).KnownKeys; }
|
||||
}
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
List<Entry> dir = null;
|
||||
|
||||
Reference in New Issue
Block a user