From d547bdca976c9bba18ffb4608fec3b57127b3654 Mon Sep 17 00:00:00 2001 From: tmpz23 <28760271+tmpz23@users.noreply.github.com> Date: Sun, 9 Jan 2022 19:14:52 +0100 Subject: [PATCH] Update gcmtool.py sort paths in rebuild-fst to be like originals fsts --- gcmtool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcmtool.py b/gcmtool.py index 50aa97a..a520c82 100644 --- a/gcmtool.py +++ b/gcmtool.py @@ -360,7 +360,8 @@ class GCM: sys_path = folder_path / "sys" fst_tree = FstTree(root_path, self.__get_min_file_offset(sys_path), align=align) - for path in root_path.glob('**/*'): + path_list = sorted([path for path in root_path.glob('**/*')], key=lambda s:Path(str(s).upper())) + for path in path_list: fst_tree.add_node_by_path(path) logging.debug(fst_tree) fst_path = sys_path / "fst.bin"