fix opening and some other stuff

This commit is contained in:
SpikeHD
2022-07-24 20:12:30 -07:00
parent 552d612e7c
commit c42c708db5
3 changed files with 8 additions and 6 deletions

View File

@@ -169,8 +169,13 @@ export async function getInstalledMods() {
return Object.keys(mods).map((path) => {
const info = JSON.parse(mods[path]) as ModData | PartialModData
const modPathArr = path.replace(/\\/g, '/').split('/')
// If there is a file in this path, remove it from the path
if (modPathArr[modPathArr.length - 1].includes('.')) modPathArr.pop()
return {
path,
path: modPathArr.join('/'),
info,
}
})