2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 16:24:55 +00:00

Initial PATH extraction support

This commit is contained in:
Jack Andersen
2018-02-23 20:17:17 -10:00
parent e4ff23c279
commit 96662eb47c
13 changed files with 242 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ struct AT_SPECIALIZE_PARMS(DataSpec::UniqueID32, DataSpec::UniqueID64) DGRP : Bi
{
AT_DECL_DNA_YAML
DNAFourCC type;
IDType id;
Value<IDType> id;
};
Vector<ObjectTag, DNA_COUNT(dependCount)> depends;

View File

@@ -104,7 +104,7 @@ struct AT_SPECIALIZE_PARMS(DataSpec::UniqueID32, DataSpec::UniqueID64) FONT : Bi
Value<atUint32> unknown4;
Value<atUint32> fontSize; // in points
String<-1> name;
IDType textureId;
Value<IDType> textureId;
Value<atUint32> textureFormat;
Value<atUint32> glyphCount;
std::vector<std::unique_ptr<IGlyph>> glyphs;

View File

@@ -69,7 +69,7 @@ struct AT_SPECIALIZE_PARMS(DataSpec::UniqueID32, DataSpec::UniqueID64) FSM2 : Bi
String<-1> name;
Value<atUint32> unknownCount;
Vector<CommonStruct, DNA_COUNT(unknownCount)> unknown;
IDType fsmId;
Value<IDType> fsmId;
};
Vector<State, DNA_COUNT(stateCount)> states;
@@ -134,7 +134,7 @@ struct AT_SPECIALIZE_PARMS(DataSpec::UniqueID32, DataSpec::UniqueID64) FSM2 : Bi
Value<atUint32> unknown4;
Value<atUint32> unknown5Count;
Vector<CommonStruct, DNA_COUNT(unknown5Count)> unknown5;
IDType fsmId;
Value<IDType> fsmId;
};
Vector<State, DNA_COUNT(stateCount)> states;

View File

@@ -472,6 +472,8 @@ std::string PAKRouter<BRIDGETYPE>::getBestEntryName(const EntryType& entry, bool
return "!area";
else if (entry.type == FOURCC('MAPA'))
return "!map";
else if (entry.type == FOURCC('PATH'))
return "!path";
}
bool named;
@@ -501,6 +503,8 @@ std::string PAKRouter<BRIDGETYPE>::getBestEntryName(const IDType& entry, bool st
return "!area";
else if (e->type == FOURCC('MAPA'))
return "!map";
else if (e->type == FOURCC('PATH'))
return "!path";
}
bool named;