1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 11:09:25 +08:00

fix: none game lib dir when CrackResource init

This commit is contained in:
0O0o0oOoO00
2026-02-07 11:45:31 +08:00
parent c76017a4dc
commit 6adc8ad835

View File

@@ -211,7 +211,11 @@ class CrackResource:
self.upload_dir = f"/data/hook/{self.arch}"
self.game_lib_dir = Path(self.__format_str(config.full_config.Hook_HookGeneral_GameLibDir)).as_posix()
lib_dir = config.full_config.Hook_HookGeneral_GameLibDir
if lib_dir:
self.game_lib_dir = Path(self.__format_str(lib_dir)).as_posix()
else:
self.game_lib_dir = None
def __file_hash(self, file_name):
with open(file_name, "rb") as f: