Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
EndangeredNayla committed Oct 15, 2021
1 parent df5cb65 commit 733e9fa
Showing 1 changed file with 40 additions and 32 deletions.
72 changes: 40 additions & 32 deletions Source/UserFiles/Updater.bat
Original file line number Diff line number Diff line change
@@ -1,32 +1,40 @@
@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 /q
rmdir Plugin /s /q
rmdir Save /s /q
cd Compiled-main
move Config ..\
move Plugin ..\
move Save ..\
move "Project64 Netplay.exe" ..\
cd ..\
rmdir Compiled-main /s Q
DEL main.zip
move GlideN64.ini Plugin\GFX
move NRage.ini Config
move Project64.cfg Config
:Exit
EXIT
@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 Config
move NRage.ini ..\
move Project64.cfg ..\
cd ..\
cd Plugin
cd GFX
move GlideN64.ini ..\..\
cd ..\
cd Input
move netplay_input_plugin.ini ..\..\
cd ..\..\
rmdir Config /s /q
rmdir Plugin /s /q
rmdir Save /s /q
cd Compiled-main
move Config ..\
move Plugin ..\
move Save ..\
move "Project64 Netplay.exe" ..\
cd ..\
rmdir Compiled-main /s Q
DEL main.zip
move GlideN64.ini Plugin\GFX
move NRage.ini Config
move Project64.cfg Config
move netplay_input_plugin.ini Plugin\Input
:Exit
EXIT

0 comments on commit 733e9fa

Please sign in to comment.