BIG FAT CLEANUP PART ONE

This commit is contained in:
SpikeHD
2022-07-13 18:10:41 -07:00
parent a703843eed
commit b903c27a22
4 changed files with 237 additions and 144 deletions

12
src/utils/game.ts Normal file
View File

@@ -0,0 +1,12 @@
import { getConfig } from './configuration'
export async function getGameExecutable() {
const config = await getConfig()
if(!config.game_install_path) {
return null
}
const pathArr = config.game_executable.replace(/\\/g, '/').split('/')
return pathArr[pathArr.length - 1].replace('.exe', '')
}