disunity
disunity copied to clipboard
Wiki and code inconsistent on FileIdentifier
It seems FileIdentifier has filepath and type reversed in the wiki.
struct FileIdentifier
{
char *assetPath;
GUID guid;
char *filePath;
int type;
}
vs
@Override
public void read(DataReader in) throws IOException {
if (versionInfo.assetVersion() > 5) {
assetPath = in.readStringNull();
}
guid.read(in);
type = in.readInt();
filePath = in.readStringNull();
}
The Java code seems to be right from observing an 4.6.5p1 file.