Skip to content

Commit

Permalink
issue with hashes length
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown321 committed Oct 18, 2016
1 parent c91bd4f commit 267d06d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions input.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
tpp/item/ewr/Scenes/gog1_main0_def
/Assets/tpp/chara/sna/Pictures/sna0_hair0_def_bsm_alp
tpp/item/ewr/Scenes/gog1_main0_def
3 changes: 2 additions & 1 deletion main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public static void Main(string[] args)
text = filename;
}
ulong testStrCode32 = GetStrCode32(text);
hash = (testStrCode32.ToString("x")).Substring(1,12);
hash = testStrCode32.ToString("x");
hash = hash.Substring(hash.Length-12,12);
if (reverse)
{
int chunkSize = 2;
Expand Down
1 change: 0 additions & 1 deletion output.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
tpp/item/ewr/Scenes/gog1_main0_def 5beed204a5a0
/Assets/tpp/chara/sna/Pictures/sna0_hair0_def_bsm_alp 9314ef08c325

0 comments on commit 267d06d

Please sign in to comment.