Skip to content

Commit

Permalink
rerun
Browse files Browse the repository at this point in the history
  • Loading branch information
hjenryin committed Feb 6, 2025
1 parent c64b174 commit 1f4e394
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions assets/retrieveData.bat
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,19 @@ echo=
@REM ** 如有需要,可以在此修改-C,-R后的数字来更改迭代次数,以及--target后的数字来更改最大目标 **
@REM ****************************************************************************************************

:run_main
.\bcjh.exe -C 5000 -R 1000 --target 5000000
@REM -h 帮助


@REM *********************
@REM ** 这一部分无需修改 **
@REM *********************
echo 按任意键关闭
pause >NUL
goto :eof
choice /c qr /m "按q关闭,按r重新运行:"
if errorlevel 2 (
goto :run_main
) else (
goto :eof
)


:download_data
Expand All @@ -57,7 +60,7 @@ if %ERRORLEVEL% EQU 0 (
)

powershell -command "Write-Host '正在获取最新厨师菜谱... ' -NoNewline"
powershell -command curl -o "data.min.json" "https://yuwenxifan.github.io/bcjhMobile/data/data.min.json"
powershell -command curl -o "data.min.json" "https://bcjh.xyz/data/data.min.json"
win-iconv\iconv.exe -f utf-8 -t gbk data.min.json > tmp
if %ERRORLEVEL% EQU 0 (
del data.min.json
Expand Down
1 change: 1 addition & 0 deletions src/bcjh_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ parseArgs(int argc, char *argv[]) {
std::cout << "-R: 菜谱迭代次数,默认1000" << std::endl;
std::cout << "--no-mp: 禁用多线程" << std::endl;
std::cout << "--recover-str: 恢复代码" << std::endl;
std::cout << "--target: 目标分数,默认4000000" << std::endl;
} else if (arg == "--no-mp") {
mp = false;
} else if (arg == "--seed") {
Expand Down

0 comments on commit 1f4e394

Please sign in to comment.