feat(config): implement Convertion

This commit is contained in:
Walid 2023-04-23 23:26:49 +01:00
parent b26459feeb
commit 51ba8d4fcb
Signed by: Walidoux
GPG Key ID: CCF21881FE8BEBAF

8
src/config/Convertion.ts Normal file
View File

@ -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 }