forked from simulationcraft/simc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: engine/report/sc_report_html_player.cpp engine/sc_thread.cpp
- Loading branch information
Showing
56 changed files
with
5,023 additions
and
4,997 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,69 @@ | ||
@echo off | ||
|
||
setlocal enabledelayedexpansion | ||
set LANG=enUS | ||
|
||
set PTR= | ||
if not %1 == ptr goto start | ||
set PTR= ptr | ||
shift | ||
|
||
:start | ||
set INPATH_A=%~f1\Data | ||
set INPATH_B=%~f1\Data\%LANG% | ||
set OUTPATH=%~f2 | ||
|
||
if exist "%INPATH_A%" goto pathb | ||
echo Error: Unable to find WoW path! %INPATH_A% | ||
echo. | ||
goto usage | ||
|
||
:pathb | ||
if exist "%INPATH_B%" goto next | ||
echo Error: Unable to find WoW path! %INPATH_B% | ||
echo. | ||
goto usage | ||
|
||
:next | ||
if exist "%OUTPATH%" goto okay | ||
echo Error: Unable to find output path! | ||
echo. | ||
goto usage | ||
|
||
:okay | ||
set FILES=misc.MPQ | ||
for %%f in ("%INPATH_A%\wow-update-base*.MPQ") do ( | ||
set FILES=!FILES! %%~nf.MPQ | ||
) | ||
set BUILD=%FILES:~-9,5% | ||
|
||
echo cd "%INPATH_A%" > tmp1.mopaq | ||
echo op %FILES% >> tmp1.mopaq | ||
echo e misc.MPQ DBFilesClient\* "%OUTPATH%\%BUILD%" /fp >> tmp1.mopaq | ||
|
||
set FILES=locale-%LANG%.MPQ | ||
for %%f in ("%INPATH_B%\wow-update-%LANG%*.MPQ") do ( | ||
set FILES=!FILES! %%~nf.MPQ | ||
) | ||
set BUILD=%FILES:~-9,5% | ||
|
||
echo cd "%INPATH_B%" > tmp2.mopaq | ||
echo op %FILES% >> tmp2.mopaq | ||
echo e locale-%LANG%.MPQ DBFilesClient\* "%OUTPATH%\%BUILD%" /fp >> tmp2.mopaq | ||
|
||
mkdir "%OUTPATH%\%BUILD%" | ||
MPQEditor.exe /console tmp1.mopaq | ||
del tmp1.mopaq | ||
MPQEditor.exe /console tmp2.mopaq | ||
del tmp2.mopaq | ||
|
||
echo Generating... | ||
generate.bat%PTR% %BUILD% "%OUTPATH%" | ||
|
||
goto end | ||
|
||
:usage | ||
echo Usage: autoextract.bat [ptr] wowpath outpath | ||
|
||
:end | ||
@echo off | ||
|
||
setlocal enabledelayedexpansion | ||
set LANG=enUS | ||
|
||
set PTR= | ||
if not %1 == ptr goto start | ||
set PTR= ptr | ||
shift | ||
|
||
:start | ||
set INPATH_A=%~f1\Data | ||
set INPATH_B=%~f1\Data\%LANG% | ||
set OUTPATH=%~f2 | ||
|
||
if exist "%INPATH_A%" goto pathb | ||
echo Error: Unable to find WoW path! %INPATH_A% | ||
echo. | ||
goto usage | ||
|
||
:pathb | ||
if exist "%INPATH_B%" goto next | ||
echo Error: Unable to find WoW path! %INPATH_B% | ||
echo. | ||
goto usage | ||
|
||
:next | ||
if exist "%OUTPATH%" goto okay | ||
echo Error: Unable to find output path! | ||
echo. | ||
goto usage | ||
|
||
:okay | ||
set FILES=misc.MPQ | ||
for %%f in ("%INPATH_A%\wow-update-base*.MPQ") do ( | ||
set FILES=!FILES! %%~nf.MPQ | ||
) | ||
set BUILD=%FILES:~-9,5% | ||
|
||
echo cd "%INPATH_A%" > tmp1.mopaq | ||
echo op %FILES% >> tmp1.mopaq | ||
echo e misc.MPQ DBFilesClient\* "%OUTPATH%\%BUILD%" /fp >> tmp1.mopaq | ||
|
||
set FILES=locale-%LANG%.MPQ | ||
for %%f in ("%INPATH_B%\wow-update-%LANG%*.MPQ") do ( | ||
set FILES=!FILES! %%~nf.MPQ | ||
) | ||
set BUILD=%FILES:~-9,5% | ||
|
||
echo cd "%INPATH_B%" > tmp2.mopaq | ||
echo op %FILES% >> tmp2.mopaq | ||
echo e locale-%LANG%.MPQ DBFilesClient\* "%OUTPATH%\%BUILD%" /fp >> tmp2.mopaq | ||
|
||
mkdir "%OUTPATH%\%BUILD%" | ||
MPQEditor.exe /console tmp1.mopaq | ||
del tmp1.mopaq | ||
MPQEditor.exe /console tmp2.mopaq | ||
del tmp2.mopaq | ||
|
||
echo Generating... | ||
generate.bat%PTR% %BUILD% "%OUTPATH%" | ||
|
||
goto end | ||
|
||
:usage | ||
echo Usage: autoextract.bat [ptr] wowpath outpath | ||
|
||
:end | ||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.