From d43673f3c897d0959215c7e7f3324a2268077067 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: Fri, 12 Apr 2024 17:38:57 +0800 Subject: [PATCH] ... --- LunaTranslator/LunaTranslator/myutils/config.py | 4 +--- LunaTranslator/LunaTranslator/myutils/utils.py | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/LunaTranslator/LunaTranslator/myutils/config.py b/LunaTranslator/LunaTranslator/myutils/config.py index e6d6a1da..9eba4781 100644 --- a/LunaTranslator/LunaTranslator/myutils/config.py +++ b/LunaTranslator/LunaTranslator/myutils/config.py @@ -94,9 +94,7 @@ def getdefaultsavehook(gamepath, title=None): "autosavesavedata": "", "developers": [], } - if gamepath == "0": - default["title"] = "No Game" - elif title and len(title): + if title and len(title): default["title"] = title else: default["title"] = ( diff --git a/LunaTranslator/LunaTranslator/myutils/utils.py b/LunaTranslator/LunaTranslator/myutils/utils.py index 566c3852..f7d87e88 100644 --- a/LunaTranslator/LunaTranslator/myutils/utils.py +++ b/LunaTranslator/LunaTranslator/myutils/utils.py @@ -179,7 +179,6 @@ def checkifnewgame(gamepath, title=None): dispatachtask(gamepath) -checkifnewgame("0") kanjichs2ja = str.maketrans(static_data["kanjichs2ja"])