2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:07:43 +00:00

Working MP1 extract with tags replaced with paths

This commit is contained in:
Jack Andersen
2016-03-01 15:49:21 -10:00
parent 8648dfbf10
commit 7049ab2b1d
15 changed files with 104 additions and 67 deletions

View File

@@ -121,6 +121,8 @@ public:
}
void write(Athena::io::YAMLDocWriter& writer) const
{
if (!operator bool())
return;
writer.writeString(nullptr, UniqueIDBridge::TranslatePakIdToPath(*this).getRelativePathUTF8());
}
size_t binarySize(size_t __isz) const
@@ -132,6 +134,7 @@ public:
bool operator!=(const UniqueID32& other) const {return m_id != other.m_id;}
bool operator==(const UniqueID32& other) const {return m_id == other.m_id;}
uint32_t toUint32() const {return m_id;}
uint64_t toUint64() const {return m_id;}
std::string toString() const
{
char buf[9];
@@ -178,6 +181,8 @@ public:
}
void write(Athena::io::YAMLDocWriter& writer) const
{
if (!operator bool())
return;
writer.writeString(nullptr, UniqueIDBridge::TranslatePakIdToPath(*this).getRelativePathUTF8());
}
size_t binarySize(size_t __isz) const
@@ -257,6 +262,8 @@ public:
}
void write(Athena::io::YAMLDocWriter& writer) const
{
if (!operator bool())
return;
writer.writeString(nullptr, UniqueIDBridge::TranslatePakIdToPath(*this).getRelativePathUTF8());
}
size_t binarySize(size_t __isz) const