xackery / quail

EverQuest PFS Manager
MIT License
7 stars 1 forks source link

Calc crc of lower-cased filepaths #5

Closed nickgal closed 1 year ago

nickgal commented 1 year ago

Pretty sure pfs uses a lower-cased filepath for the crc key.

zone-utilities also does this: https://github.com/EQEmu/zone-utilities/blob/0cf54d8ef093df437b93f377ede43e69363fdcfa/src/common/pfs.cpp#L85

https://github.com/KimLS/zone-utilities-rs/blob/10a2631daf1e55c6ef2c7183d00a4a546a6a0048/crates/zu_common/src/archive/pfs/writable.rs#L79

nickgal commented 1 year ago

This got me thinking, you must have already know this by now and there must be something else wrong. Looks like eqg has the lower case commented out.

https://github.com/xackery/quail/blob/fdff35ee38ae43ab5d29153dc9c212b779214729/pfs/eqg/file.go#L57

https://github.com/xackery/quail/blob/fdff35ee38ae43ab5d29153dc9c212b779214729/pfs/s3d/file.go#L30