Add WIP info command to rustii CLI, currently has a lot of blanks

This commit is contained in:
2025-03-25 20:19:59 -04:00
parent 839e33b911
commit 8c7cd48dff
6 changed files with 168 additions and 6 deletions

View File

@@ -211,7 +211,7 @@ impl TMD {
let mut current_int: u16 = 0;
let mut test_hash: [u8; 20] = [255; 20];
while test_hash[0] != 0 {
if current_int == 255 { return Err(TMDError::CannotFakesign); }
if current_int == 65535 { return Err(TMDError::CannotFakesign); }
current_int += 1;
self.minor_version = current_int;
let mut hasher = Sha1::new();