mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-16 09:04:45 +01:00
downloading and extracting
This commit is contained in:
@@ -1 +1,13 @@
|
||||
export {}
|
||||
import { getConfigOption } from './configuration'
|
||||
|
||||
export async function getModsFolder() {
|
||||
const migotoPath = await getConfigOption('migoto_path')
|
||||
|
||||
if (!migotoPath) return null
|
||||
|
||||
// Remove exe from path
|
||||
const pathArr = migotoPath.replace(/\\/g, '/').split('/')
|
||||
pathArr.pop()
|
||||
|
||||
return pathArr.join('/') + '/Mods/'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user