text
stringlengths
0
834k
:getPrivileges
if '%1'=='ELEV' (echo ELEV & shift /1 & goto gotPrivileges)
ECHO.
ECHO **************************************
ECHO Requesting privilege escalation
ECHO **************************************
ECHO Set UAC = CreateObject^(""Shell.Application""^) > ""%vbsGetPrivileges%""
ECHO args = ""ELEV "" >> ""%vbsGetPrivileges%""
ECHO For Each strArg in WScript.Arguments >> ""%vbsGetPrivileges%""
ECHO args = args ^& strArg ^& "" "" >> ""%vbsGetPrivileges%""
ECHO Next >> ""%vbsGetPrivileges%""
ECHO UAC.ShellExecute ""!batchPath!"", args, """", ""runas"", 1 >> ""%vbsGetPrivileges%""
""%SystemRoot%\System32\WScript.exe"" ""%vbsGetPrivileges%"" %*
exit /B
:gotPrivileges
setlocal & pushd .
cd /d %~dp0
if '%1'=='ELEV' (del ""%vbsGetPrivileges%"" 1>nul 2>nul & shift /1)
REM -----------------------------------------------------------
reg query ""HKLM\Hardware\Description\System\CentralProcessor\0"" | find /i ""x86"" > NUL && set OS=x86 || set OS=x64
reg query ""HKCR\CLSID"" | find /i ""{63424DF1-FAA8-4598-97E5-6E95D4A4ED67}"" > NUL && goto REMOVE || goto INSTALL
:INSTALL
echo Installing Thumbnail Handler (%OS%)
regsvr32 Pso2SarThumbnailHandler.%OS%.dll
choice /c yn /t 30 /d n /m ""Enable High Resolution Rendering?""
if %errorlevel% == 1 (
reg add ""HKCR\CLSID\{63424DF1-FAA8-4598-97E5-6E95D4A4ED67}"" /v ""HighDefinition"" /t REG_DWORD /d 1 /f
) else (
reg add ""HKCR\CLSID\{63424DF1-FAA8-4598-97E5-6E95D4A4ED67}"" /v ""HighDefinition"" /t REG_DWORD /d 0 /f
)
goto END
:REMOVE
echo Removing Thumbnail Handler (%OS%)
regsvr32 /u Pso2SarThumbnailHandler.%OS%.dll
goto END
:END",33.0508474576,113,0.6415384615
164,d01816e774274e80b8f759eb4cbcb57da9f32fda,1394,bat,Batchfile,.vscode/compile.bat,ReyeMe/ClothDemo-Saturn,384d629b249da10a3f00495b99931f8532f2f90e,['MIT'],4.0,2021-12-29T01:52:19.000Z,2022-02-19T02:52:52.000Z,.vscode/compile.bat,ReyeMe/ClothDemo-Saturn,384d629b249da10a3f00495b99931f8532f2f90e,['MIT'],,,,.vscode/compile.bat,ReyeMe/ClothDemo-Saturn,384d629b249da10a3f00495b99931f8532f2f90e,['MIT'],,,,"@ECHO Off
SET EMULATOR_DIR=..\..\Emulators
SET COMPILER_DIR=..\..\Compiler
SET JO_ENGINE_SRC_DIR=..\..\jo_engine
if ""%1"" == ""findSources"" GOTO find
IF ""%1"" == ""run"" GOTO run
IF ""%1"" == ""cleanOnly"" GOTO clean
IF NOT EXIST == ""game.iso"" GOTO compile
:clean
del /Q /F /S cd\0.bin > NUL
del /Q /F /S *.o > NUL
del /Q /F /S %JO_ENGINE_SRC_DIR%\*.o > NUL
del /Q /F /S *.bin > NUL
del /Q /F /S *.coff > NUL
del /Q /F /S *.elf > NUL
del /Q /F /S *.map > NUL
del /Q /F /S *.iso > NUL
del /Q /F /S *.raw > NUL
del /Q /F /S *.cue > NUL
IF ""%1"" == ""cleanOnly"" GOTO end
:compile
SET PATH=%COMPILER_DIR%\WINDOWS\Other Utilities;%COMPILER_DIR%\WINDOWS\bin;%PATH%
""%COMPILER_DIR%\WINDOWS\Other Utilities\make"" re
IF NOT ""%1"" == ""alsoRun"" GOTO end
:run
if ""%2%"" == ""mednafen"" GOTO mednafen
IF EXIST game.iso ""%EMULATOR_DIR%\yabause\yabause.exe"" -a -i game.iso
IF NOT EXIST game.iso GOTO closeError
GOTO end
:mednafen
IF EXIST game.cue ""%EMULATOR_DIR%\mednafen\mednafen.exe"" game.cue
IF NOT EXIST game.cue GOTO closeError
GOTO end
:closeError
ECHO ""Task Fail""
GOTO end
:find
setlocal enabledelayedexpansion
SET _root=%CD%\
SET _sources=
FOR /f ""tokens=*"" %%G IN ('dir /s /b *.c ^| find ""c"" ^| find /V ""Directory of""') DO (
CALL SET _line=%%G
CALL SET _result=%%_line:%_root%=%%
SET _sources=!_sources! !_result!
)
echo !_sources!
setlocal disabledelayedexpansion
GOTO end