From fdc3979052b83aae08799971849a076690a8d0de Mon Sep 17 00:00:00 2001 From: SuperSkidder Date: Tue, 17 Sep 2024 00:43:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8A=E6=AC=A1=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E9=81=97=E6=BC=8F=E7=9A=84=E3=80=82=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/java/top/fpsmaster/utils/os/FileUtils.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shared/java/top/fpsmaster/utils/os/FileUtils.kt b/shared/java/top/fpsmaster/utils/os/FileUtils.kt index 911e247..8a3453c 100644 --- a/shared/java/top/fpsmaster/utils/os/FileUtils.kt +++ b/shared/java/top/fpsmaster/utils/os/FileUtils.kt @@ -20,6 +20,8 @@ object FileUtils { var artists: File var omaments: File var round: File + var background: File + var hasBackground = false init { cache = file(ProviderManager.mcProvider.getGameDir(), ".cache") @@ -31,6 +33,9 @@ object FileUtils { music = file(netease, "songs") artists = file(netease, "artists") omaments = file(cache, "omaments") + background = File(dir,"background.png") + if (background.exists()) + hasBackground = true } fun file(parent: File, child: String): File {