@echo off
title MStory : X — 1-Click Game AutoFix
cd /d "%~dp0"
echo ========================================================
echo   MStory : X (v1.0.3) — 1-Click AutoFix & Direct Play
echo ========================================================
echo [1/3] Terminating stalled processes...
taskkill /F /IM MapleStory.exe /T >nul 2>&1
taskkill /F /IM "MStoryX Launcher.exe" /T >nul 2>&1

echo [2/3] Setting Registry Windowed Mode...
reg add "HKCU\Software\Wizet\MapleStory" /v "soScreenMode" /t REG_DWORD /d 3 /f >nul 2>&1

echo [3/3] Launching Game...
start "" "MapleStory.exe" 127.0.0.1 8484
echo Done! Enjoy MStory : X!
exit
