From 51ba8d4fcb486069a0f41331e800c3f552ff421a Mon Sep 17 00:00:00 2001 From: Walidoux Date: Sun, 23 Apr 2023 23:26:49 +0100 Subject: [PATCH] feat(config): implement Convertion --- src/config/Convertion.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/config/Convertion.ts diff --git a/src/config/Convertion.ts b/src/config/Convertion.ts new file mode 100644 index 0000000..d58d6af --- /dev/null +++ b/src/config/Convertion.ts @@ -0,0 +1,8 @@ +import { downloadDir } from '@tauri-apps/api/path' + +import { PROD_VERSION } from './Endpoints' + +const gamedataDir = (await downloadDir()).concat(String(PROD_VERSION)) +const gamedataConfigDir = gamedataDir.concat('/config') + +export const Convertion = { gamedataDir, gamedataConfigDir }