This commit is contained in:
恍兮惚兮 2024-08-30 05:07:39 +08:00
parent 739fa24944
commit cbc45f8a7d

View File

@ -179,6 +179,7 @@ class texthook(basetext):
tgt = gobject.getcachedir("update/LunaHook")
with zipfile.ZipFile(savep) as zipf:
zipf.extractall(tgt)
shutil.rmtree("files/plugins/LunaHook")
if os.path.exists(os.path.join(tgt, "Release_English", "LunaHook32.dll")):
shutil.move(os.path.join(tgt, "Release_English"), "files/plugins/LunaHook")
else: