disunity icon indicating copy to clipboard operation
disunity copied to clipboard

Wiki and code inconsistent on FileIdentifier

Open vdelau opened this issue 10 years ago • 0 comments

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.

vdelau avatar Jul 29 '15 23:07 vdelau