forked from zyddnys/manga-image-translator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMangaStudioMainRun.bat
More file actions
50 lines (43 loc) · 1.37 KB
/
MangaStudioMainRun.bat
File metadata and controls
50 lines (43 loc) · 1.37 KB
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
40
41
42
43
44
45
46
47
48
49
50
@echo off
REM =================================================================
REM == ==
REM == MANGA TRANSLATION STUDIO - LAUNCHER ==
REM == ==
REM =================================================================
REM Set the working directory to this script's location.
cd /d "%~dp0"
:MENU
cls
echo.
echo =========================================
echo MANGA TRANSLATION STUDIO LAUNCHER
echo =========================================
echo.
echo Please choose a launch mode:
echo.
echo [1] Normal Mode (No Console Window)
echo.
echo [2] Debug Mode (With Console Window)
echo.
echo [Q] Quit
echo.
echo =========================================
echo.
CHOICE /C 12Q /M "Enter your choice: "
IF ERRORLEVEL 3 GOTO END
IF ERRORLEVEL 2 GOTO DEBUG_MODE
IF ERRORLEVEL 1 GOTO NORMAL_MODE
:NORMAL_MODE
echo [INFO] Launching in Normal (Silent) Mode...
start "" ".\venv\Scripts\pythonw.exe" MangaStudioMain.py
GOTO END
:DEBUG_MODE
echo [INFO] Launching in Debug (Console) Mode...
echo -----------------------------------------------------------------
.\venv\Scripts\python.exe MangaStudioMain.py
echo -----------------------------------------------------------------
echo [DEBUG] Script has finished or was stopped.
pause
GOTO END
:END
exit