widberg / dpc

Superseded by https://github.com/widberg/bff
https://github.com/widberg/bff
MIT License
10 stars 2 forks source link

File name ParseIntError { kind: InvalidDigit } when creating DPCs #5

Closed widberg closed 2 years ago

widberg commented 2 years ago

HxD creates a .bak file when you edit a file. The DPC tool complains when the file names aren't exactly of the form \<crc32>.\<type>. Let's ignore files that don't match the format instead of panicking. Line 805 in the fuel_dpc.rs file unwraps the parsed number from the file name without checking.