Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ArcFormats/KiriKiri/KiriKiriCx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ public override void Init (ArcFile arc)

var dir_name = VFS.GetDirectoryName (arc.File.Name);
var tpm_name = VFS.CombinePath (dir_name, TpmFileName);
// Try search in "plugin" directory
if (!VFS.FileExists (tpm_name))
tpm_name = VFS.CombinePath (VFS.CombinePath (dir_name, "plugin"), TpmFileName);
using (var tpm = VFS.OpenView (tpm_name))
{
if (tpm.MaxOffset < 0x1000 || tpm.MaxOffset > uint.MaxValue)
Expand Down
Loading