-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFCLive.bat
39 lines (32 loc) · 1.1 KB
/
FCLive.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@echo off
REM FC Live Editor Launch Script
REM Closes Steam and EA apps, then launches the FC Live Editor from the same folder.
REM ===== CONFIGURATION =====
:: Automatically determine the directory of the script
set "SCRIPT_DIR=%~dp0"
set "EDITOR_PATH=%SCRIPT_DIR%Launcher.exe"
REM ===== MAIN SCRIPT =====
cls
echo FC Live Editor Launch Script
echo ============================
:: Close Steam
echo Closing Steam processes...
taskkill /F /IM steam.exe /T >nul 2>&1
taskkill /F /IM steamwebhelper.exe /T >nul 2>&1
:: Close EA App
echo Closing EA App processes...
taskkill /F /IM EADesktop.exe /T >nul 2>&1
taskkill /F /IM EABackgroundService.exe /T >nul 2>&1
:: Check if the Live Editor exists in the same folder
if not exist "%EDITOR_PATH%" (
echo Error: Live Editor not found in the script's folder.
echo Please ensure "Launcher.exe" is located in the same directory as this script.
pause
exit /b 1
)
:: Launch the Live Editor
echo Launching Live Editor from "%SCRIPT_DIR%"...
start "" "%EDITOR_PATH%"
echo Launch complete. Click "Run Game" in the Live Editor.
:: Remove this line to auto close CMD
pause