mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-30 17:05:37 +08:00
(CabbageCxCrypt): new cx encryptor variation.
This commit is contained in:
parent
09f0c78c5e
commit
42611d2fa8
@ -73,23 +73,33 @@ namespace GameRes.Formats.KiriKiri
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class NanaCxCrypt : SenrenCxCrypt
|
public class CabbageCxCrypt : SenrenCxCrypt
|
||||||
{
|
{
|
||||||
uint m_random_seed;
|
uint m_random_seed;
|
||||||
|
|
||||||
public uint[] YuzKey;
|
public CabbageCxCrypt (CxScheme scheme, uint seed) : base (scheme)
|
||||||
|
|
||||||
public NanaCxCrypt (CxScheme scheme, uint seed) : base (scheme)
|
|
||||||
{
|
{
|
||||||
m_random_seed = seed;
|
m_random_seed = seed;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string NamesSectionId { get { return "dls:"; } }
|
public override string NamesSectionId { get { return "cbg:"; } }
|
||||||
|
|
||||||
internal override CxProgram NewProgram (uint seed)
|
internal override CxProgram NewProgram (uint seed)
|
||||||
{
|
{
|
||||||
return new CxProgramNana (seed, m_random_seed, ControlBlock);
|
return new CxProgramNana (seed, m_random_seed, ControlBlock);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[Serializable]
|
||||||
|
public class NanaCxCrypt : CabbageCxCrypt
|
||||||
|
{
|
||||||
|
public uint[] YuzKey;
|
||||||
|
|
||||||
|
public NanaCxCrypt (CxScheme scheme, uint seed) : base (scheme, seed)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public override string NamesSectionId { get { return "dls:"; } }
|
||||||
|
|
||||||
internal override void ReadYuzNames (byte[] yuz, FilenameMap filename_map)
|
internal override void ReadYuzNames (byte[] yuz, FilenameMap filename_map)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user