PikminGuts92 / Mackiloha

A suite of modding software for hacking milo engine based games
MIT License
18 stars 8 forks source link

Fix hash sorting for arks without root files #8

Open PikminGuts92 opened 3 years ago

PikminGuts92 commented 3 years ago

Fix string sorting by hash in milo arks that don't contain files in root directory. The 0th slot should not be reserved for (empty) when no files are listed in root. Currently affects GH1.

Workaround for dir2ark, put a random file in the root directory of archive so game will successfully load ark.

https://github.com/PikminGuts92/Mackiloha/blob/150d4abfd97924627d1a58496ec9a486672e0915/Src/Core/Mackiloha/Ark/ArkFile.cs#L650-L655

Caused by: cce8c0afe65da102f651886969b1eac633bfaf1c

Expected

010Editor_5JsUfuDNND

Actual

010Editor_jfIHLO1Y1v