motoharu-gosuto / psvpfstools

Tools for decrypting PS Vita PFS filesystem
127 stars 22 forks source link

Fix comparison always evaluating to false #7

Closed aj-m closed 6 years ago

aj-m commented 6 years ago

The parseUnicvDb(std::ifstream&, scei_rodb_t&) function called here is a bool, not an int.
Neither boolean value evaluates as less than zero, so this condition as originally written will never work.

image