Post Reply 
 
Thread Rating:
  • 1 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
final fantasy type-0 iso merge file issue
12-30-2013, 02:12 AM (This post was last modified: 12-30-2013 02:15 AM by [Unknown].)
Post: #19
RE: final fantasy type-0 iso merge file issue
Hmm. I suppose sce_lbn references may not work properly with a 2+ GB iso, although umd: access will (it's by LBA.)

If you change seekPos from unsigned int to u64, as well as openSize. Then also change startingPosition of the TreeEntry struct to u64. Might need to add some casts to this line:

e->startingPosition = dir.firstDataSector() * 2048;

And then change:

Code:
        u32 sectorStart = 0xFFFFFFFF, readSize = 0xFFFFFFFF;
        parseLBN(filename, &sectorStart, &readSize);

To:

Code:
        u32 sectorStart = 0xFFFFFFFF;
        u64 readSize = 0xFFFFFFFFFFFFFFFFULL;
        parseLBN(filename, &sectorStart, &readSize);

(both times)

And then in parseLBN:

Code:
bool parseLBN(std::string filename, u32 *sectorStart, u32 *readSize)

...

    if (sscanf(filename_c + pos, "%x", readSize) != 1)
        *readSize = 0;

    return true;
}

Code:
bool parseLBN(std::string filename, u32 *sectorStart, u32 *readSize)

...

    if (sscanf(filename_c + pos, "%llx", readSize) != 1)
        *readSize = 0;

    return true;
}

If that works, it'll mean some hassles to make savestates upgrade, but that could maybe/hopefully do the trick.

Oh, also, you'll need:

Code:
u32 positionOnIso;

Change to u64, and possibly some related casts.

If not (very possible, I'm not sure why it would be reading the second sector...), hmm...

-[Unknown]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: final fantasy type-0 iso merge file issue - [Unknown] - 12-30-2013 02:12 AM

Forum Jump: