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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user