@echo off
chcp 65001 >nul
setlocal EnableExtensions
cd /d "%~dp0"
if exist "Karuiya.exe" (
  "Karuiya.exe" --register-file-association
  exit /b %ERRORLEVEL%
)
call "%~dp0run.bat" --register-file-association
exit /b %ERRORLEVEL%
