From 7c53669fc4a454dd14e0702e688f7a057ba0b5c3 Mon Sep 17 00:00:00 2001 From: Thoronium <107363768+NotThorny@users.noreply.github.com> Date: Sun, 26 Feb 2023 14:37:13 -0700 Subject: [PATCH] Update encryption button on jar set Update README --- README.md | 16 +++++++++++++++- src/ui/components/menu/Options.tsx | 7 +++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d9aa6f1..691d639 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,21 @@ EN | [简中](README_zh-CN.md) | [繁中](README_zh-TW.md) | -# Cultivation +# Cultivation : Thorny Edition A game launcher designed to easily proxy traffic from anime game to private servers. +### Thorny Edition Changes: + + - Fixed 3dmigoto paths being broken + - Fixed "stuck on extracting" issue + - Better default settings + - Replace useless stable download with all-in-one download + - Encryption button actually applies to edited configs + - Recent commits box shows immediately instead of needing to be clicked on + - Various QoL improvements + - Added Korean translation thanks to [@koreako12](https://github.com/koreako12) + - Some other translation additions (machine translation, let me know if things are wrong) + # Table Of Contents - [Client Patching Notice](#client-patching-notice) @@ -20,6 +32,8 @@ A game launcher designed to easily proxy traffic from anime game to private serv # Client Patching Notice +## This information is only for game versions 2.8/3.0. Newer versions do not use metadata patching. + For game versions 2.8 and above, Cultivation automatically makes a small patch to your game client when launching using Grasscutter, and restores it upon closing the game. In theory, you should still be totally safe, however it would be dishonest to not explicitly state that **modifying the game client could, theoretically, lead to a ban if you connect to official servers with it**. It is extremely unlikely AND there are no instances known of it happening, but the possibility exists. # Download diff --git a/src/ui/components/menu/Options.tsx b/src/ui/components/menu/Options.tsx index 689f7dd..0b38b0f 100644 --- a/src/ui/components/menu/Options.tsx +++ b/src/ui/components/menu/Options.tsx @@ -149,6 +149,13 @@ export default class Options extends React.Component { this.setState({ grasscutter_path: value, }) + + // Update encryption button when setting new jar + this.setState({ + encryption: await translate( + (await server.encryptionEnabled(folderPath + '/config.json')) ? 'options.enabled' : 'options.disabled' + ), + }) } setJavaPath(value: string) {