implemented Nitro+ archives creation.

encryption not implemented yet.
This commit is contained in:
morkt
2014-08-18 09:07:35 +04:00
parent 881a95c165
commit 8697257e79
12 changed files with 451 additions and 46 deletions

View File

@@ -25,10 +25,10 @@ namespace GameRes.Formats.Properties {
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("NotEncrypted")]
public global::GameRes.Formats.NpaTitleId NPAScheme {
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string NPAScheme {
get {
return ((global::GameRes.Formats.NpaTitleId)(this["NPAScheme"]));
return ((string)(this["NPAScheme"]));
}
set {
this["NPAScheme"] = value;
@@ -201,5 +201,41 @@ namespace GameRes.Formats.Properties {
this["RPAKey"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool NPACompressContents {
get {
return ((bool)(this["NPACompressContents"]));
}
set {
this["NPACompressContents"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("1095188814")]
public uint NPAKey1 {
get {
return ((uint)(this["NPAKey1"]));
}
set {
this["NPAKey1"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("555831124")]
public uint NPAKey2 {
get {
return ((uint)(this["NPAKey2"]));
}
set {
this["NPAKey2"] = value;
}
}
}
}

View File

@@ -2,8 +2,8 @@
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="GameRes.Formats.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="NPAScheme" Type="GameRes.Formats.NpaTitleId" Scope="User">
<Value Profile="(Default)">NotEncrypted</Value>
<Setting Name="NPAScheme" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="XP3Scheme" Type="System.String" Scope="User">
<Value Profile="(Default)" />
@@ -47,5 +47,14 @@
<Setting Name="RPAKey" Type="System.UInt32" Scope="User">
<Value Profile="(Default)">1111638594</Value>
</Setting>
<Setting Name="NPACompressContents" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="NPAKey1" Type="System.UInt32" Scope="User">
<Value Profile="(Default)">1095188814</Value>
</Setting>
<Setting Name="NPAKey2" Type="System.UInt32" Scope="User">
<Value Profile="(Default)">555831124</Value>
</Setting>
</Settings>
</SettingsFile>