Skip to content

Commit 80be47c

Browse files
committed
Fix TR11 archive from PS4 not opening
1 parent 3621b2a commit 80be47c

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Yura.Shared/Archive/ArchiveOptions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ public class ArchiveOptions
1515
/// </summary>
1616
public Endianness Endianness { get; set; }
1717

18+
/// <summary>
19+
/// Gets or sets the archive platform
20+
/// </summary>
21+
public Platform Platform { get; set; }
22+
1823
/// <summary>
1924
/// Gets or sets the archive alignment
2025
/// </summary>

Yura.Shared/Archive/TigerArchive.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public override void Open()
3838
var numArchives = reader.ReadUInt32();
3939
var numRecords = reader.ReadUInt32();
4040

41-
// Skip 4 bytes, or 8 in version 5 or later
42-
reader.Position += version < 5 ? 4 : 8;
41+
// Skip 4 bytes, or 8 in version 5 or later (unless Orbis)
42+
reader.Position += version >= 5 && Options.Platform != Platform.Orbis ? 8 : 4;
4343

4444
// Skip over the config name
4545
reader.Position += 32;

Yura/MainWindow.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ public void OpenBigfile(string bigfile, IFileSettings settings)
144144
{
145145
Path = bigfile,
146146
Endianness = settings.Endianness,
147+
Platform = settings.Platform,
147148
Alignment = settings.Alignment,
148149
FileList = list
149150
};

0 commit comments

Comments
 (0)