From 7504032513a42c461f1817a9a6d4f6259ac78609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Wed, 14 Aug 2024 21:17:23 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/textsource/textsourcebase.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/textsource/textsourcebase.py b/LunaTranslator/LunaTranslator/textsource/textsourcebase.py index 282df9ca..53696823 100644 --- a/LunaTranslator/LunaTranslator/textsource/textsourcebase.py +++ b/LunaTranslator/LunaTranslator/textsource/textsourcebase.py @@ -67,6 +67,8 @@ class basetext: self.__hwnd = None self.pids = [] self.gameuid = None + self.md5 = "0" + self.basename = self.__basename if _hwnd: self.__hwnd = hwndchecker(_hwnd, self) @@ -83,7 +85,7 @@ class basetext: def __init__(self, md5, basename): self.md5 = md5 - self.basename = basename + self.__basename = self.basename = basename self.__hwnd = None self.pids = [] self.gameuid = None