UPDATE: Add ldiff
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { useEffect } from 'react';
|
||||
import { Play, Menu, FolderOpen, MessageCircleQuestionMark } from 'lucide-react';
|
||||
import { FSService, AppService } from '@bindings/firefly-launcher/internal';
|
||||
import { AppService } from '@bindings/firefly-launcher/internal/app-service';
|
||||
import { FSService } from '@bindings/firefly-launcher/internal/fs-service';
|
||||
import { toast } from 'react-toastify';
|
||||
import path from 'path-browserify'
|
||||
import useSettingStore from '@/stores/settingStore';
|
||||
@@ -120,7 +121,7 @@ export default function LauncherPage() {
|
||||
const handlePickFile = async () => {
|
||||
try {
|
||||
setIsLoading(true)
|
||||
const basePath = await FSService.PickFile()
|
||||
const basePath = await FSService.PickFile("exe")
|
||||
if (basePath.endsWith("StarRail.exe") || basePath.endsWith("launcher.exe")) {
|
||||
const normalized = basePath.replace(/\\/g, '/')
|
||||
const folderPath = path.dirname(normalized)
|
||||
|
||||
Reference in New Issue
Block a user