mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(GetKeyFromEntry): fixed PHENOMENO key.
This commit is contained in:
parent
ae3aaef3db
commit
0249ecf40e
@ -183,6 +183,8 @@ namespace GameRes.Formats
|
||||
|
||||
if (arc.GameId != NpaTitleId.LAMENTO && arc.GameId != NpaTitleId.LAMENTOTR)
|
||||
encrypted_length += entry.RawName.Length;
|
||||
if (encrypted_length > entry.Size)
|
||||
encrypted_length = (int)entry.Size;
|
||||
|
||||
using (var view = arc.File.CreateViewAccessor (entry.Offset, entry.Size))
|
||||
{
|
||||
@ -193,7 +195,7 @@ namespace GameRes.Formats
|
||||
try
|
||||
{
|
||||
int x;
|
||||
for (x = 0; x < entry.Size && x < encrypted_length; x++)
|
||||
for (x = 0; x < encrypted_length; x++)
|
||||
{
|
||||
if (arc.GameId == NpaTitleId.LAMENTO || arc.GameId == NpaTitleId.LAMENTOTR)
|
||||
{
|
||||
@ -251,6 +253,7 @@ namespace GameRes.Formats
|
||||
case NpaTitleId.SONICOMI:
|
||||
case NpaTitleId.LOSTX:
|
||||
case NpaTitleId.DRAMATICALMURDER:
|
||||
case NpaTitleId.PHENOMENO:
|
||||
key1 = 0x20101118;
|
||||
break;
|
||||
case NpaTitleId.TOTONO:
|
||||
|
Loading…
x
Reference in New Issue
Block a user