@echo off
title Project 64 Netplay Updater
:choice
set /P c=Are you sure you want to continue[Y/N]?
if /I "%c%" EQU "Y" goto :Start
if /I "%c%" EQU "N" goto :Exit
goto :Exit

:Start
TASKKILL /IM "Project64 Netplay.exe" /F
"Plugin/Updater/wget.exe" https://github.com/Project64Netplay/Compiled/archive/refs/heads/main.zip
"Plugin/Updater/7z.exe" x main.zip
cd Plugin
cd GFX
move GlideN64.ini ..\..\
cd ..\..\
rmdir Config /s
rmdir Plugin /s
rmdir Save /s
cd Compiled-main
move Config ..\
move Plugin ..\
move Save ..\
move "Project64 Netplay.exe" ..\
cd ..\
rmdir Compiled-main /s
DEL main.zip
move GlideN64.ini Plugin\GFX
move NRage.ini Config
move Project64.cfg Config
:Exit
EXIT