From ab223719c5ca2b1c120827409a4dfb6eb3d92800 Mon Sep 17 00:00:00 2001 From: Rusyaidi Date: Thu, 18 Jul 2024 14:19:09 +0800 Subject: [PATCH] fix: added keep script to prevent removing model file --- assets/models/keep.xml | 3 +++ constants/Characters.ts | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) create mode 100644 assets/models/keep.xml diff --git a/assets/models/keep.xml b/assets/models/keep.xml new file mode 100644 index 0000000..a87bf7b --- /dev/null +++ b/assets/models/keep.xml @@ -0,0 +1,3 @@ + + diff --git a/constants/Characters.ts b/constants/Characters.ts index e55e7bf..b66e6a0 100644 --- a/constants/Characters.ts +++ b/constants/Characters.ts @@ -129,17 +129,12 @@ export namespace Characters { const imageID = get().card?.data.image_id if (imageID) return copyImage(sourceURI, imageID) }, - getCardTest: () => { - return get().card - }, getCache: (charName: string) => { const cache = get().tokenCache - console.log(cache) const card = get().card if (cache?.otherName && cache.otherName === useUserCard.getState().card?.data.name) return cache - console.log(card) if (!card) return { otherName: charName,