Welcome to mirror list, hosted at ThFree Co, Russian Federation.

makehmod.bat - github.com/ClusterM/retroarch-clover.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cbd2ad6498aeed00aa93bf3d076579efc959a0b0 (plain)
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
@echo off
set moddir=retroarch.hmod
set modname=retroarch.hmod
set outdir=output
for %%x in (%*) do set outdir=%1

cd %moddir%
if not ERRORLEVEL 0 goto error
tar -czvf %modname% *
if ERRORLEVEL 9009 goto notar
if not ERRORLEVEL 0 goto error
md ..\%outdir%
if not ERRORLEVEL 0 goto error
del /F /S /Q ..\%outdir%
if not ERRORLEVEL 0 goto error
move /Y %modname% ..\%outdir%
if not ERRORLEVEL 0 goto error
echo Done!
goto end

:notar
echo Error %ERRORLEVEL%. Maybe you have not tar?
goto end

:error
echo Error %ERRORLEVEL%
goto end

:end