thelink2012 / modloader

Mod Loader for GTA III, Vice City and San Andreas
MIT License
268 stars 29 forks source link

Allow 32GB image files #32

Closed thelink2012 closed 9 years ago

thelink2012 commented 9 years ago

At CdStreamThread when reading off cd->nSectorsToRead and cd->nSectorOffset use a uint64_t instead of a size_t. Then setup also the OVERLAPPED::OffsetHigh field.

Even though Mod Loader's intentions are to avoid using img files, it doesn't hurt to do such a small change, specially when I'm the only one with access to the CdStreamThread! Thanks to fastman92 for the heads up.

thelink2012 commented 9 years ago

32GB? Seems to be 8GB _(UINT32MAX * 2048).

quiret commented 9 years ago

Splendid. Big IMG archives will become standard thanks to you! :)