ata4 / disunity

An experimental toolset for Unity asset and asset bundle files.
The Unlicense
2.7k stars 659 forks source link

Wiki and code inconsistent on FileIdentifier #142

Open vdelau opened 9 years ago

vdelau commented 9 years ago

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.