2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-07-03 22:30:07 +00:00

Add dumping support for PS3, Wii U and Xenon server fast files (#826)

Co-authored-by: hindercanrun <109132519+meowica@users.noreply.github.com>
This commit is contained in:
Ash
2026-06-16 16:45:03 +08:00
committed by GitHub
parent 8dba13f913
commit 040826b1f3
3 changed files with 42 additions and 1 deletions
@@ -155,6 +155,44 @@ namespace
};
}
}
else if (endianness::FromLittleEndian(header.m_version) == ZoneConstants::ZONE_VERSION_PS3)
{
if (!memcmp(header.m_magic, ZoneConstants::MAGIC_UNSIGNED_SERVER, 8))
{
return ZoneLoaderInspectionResultT6{
.m_generic_result =
ZoneLoaderInspectionResult{
.m_game_id = GameId::T6,
.m_endianness = GameEndianness::LE,
.m_word_size = GameWordSize::ARCH_32,
.m_platform = GamePlatform::PS3,
.m_is_official = true,
.m_is_signed = false,
.m_is_encrypted = false,
},
.m_compression_type = ZoneCompressionTypeT6::DEFLATE,
};
}
}
else if (endianness::FromLittleEndian(header.m_version) == ZoneConstants::ZONE_VERSION_WIIU)
{
if (!memcmp(header.m_magic, ZoneConstants::MAGIC_UNSIGNED_SERVER, 8))
{
return ZoneLoaderInspectionResultT6{
.m_generic_result =
ZoneLoaderInspectionResult{
.m_game_id = GameId::T6,
.m_endianness = GameEndianness::LE,
.m_word_size = GameWordSize::ARCH_32,
.m_platform = GamePlatform::WIIU,
.m_is_official = true,
.m_is_signed = false,
.m_is_encrypted = false,
},
.m_compression_type = ZoneCompressionTypeT6::DEFLATE,
};
}
}
return std::nullopt;
}