ata4 / disunity

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

Wiki and code inconsistent on FileIdentifier #142

Open vdelau opened 8 years ago

vdelau commented 8 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.