Skip to content

Commit

Permalink
web的恢复代码暂缓上线
Browse files Browse the repository at this point in the history
  • Loading branch information
hjenryin committed Jan 3, 2025
1 parent ce075d0 commit ee0a74e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 23 deletions.
5 changes: 3 additions & 2 deletions src/bcjh_js.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,14 @@ std::string
EMSCRIPTEN_KEEPALIVE
#endif
runjs(const std::string &userDataIn, const std::string &ruleDataIn,
int targetScore, int iterChef, int iterRecipe, bool allowTool,
const std::string &recover_string
int targetScore, int iterChef, int iterRecipe, bool allowTool
// ,const std::string &recover_string
#ifdef EMSCRIPTEN_PROGRESS
,
emscripten::val postProgress
#endif
) {
std::string recover_string = "";
const int T_MAX_CHEF = targetScore / 100;
const int T_MAX_RECIPE = targetScore / 400;
SARunner::init(T_MAX_CHEF, T_MAX_RECIPE, iterChef, iterRecipe, targetScore);
Expand Down
3 changes: 2 additions & 1 deletion src/bcjh_js.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ std::string
#endif
runjs(const std::string &userDataIn, const std::string &ruleDataIn,
int targetScore, int iterChef = 5000, int iterRecipe = 1000,
bool allowTool = true, const std::string &recover_string = ""
bool allowTool = true
// , const std::string &recover_string = ""
#ifdef EMSCRIPTEN_PROGRESS
,
emscripten::val postProgress = emscripten::val::null()
Expand Down
25 changes: 5 additions & 20 deletions src/bcjh_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,15 @@ std::tuple<Json::Value, Json::Value, Json::Value, std::size_t> loadJsonFiles();

std::tuple<bool, int, bool, int, int, int, std::string>
parseArgs(int argc, char *argv[]) {
int iterChef = 1;
int iterRecipe = 1;
int iterChef = 5000;
int iterRecipe = 1000;
bool silent = false;
int log = 0 + VERBOSE;
int log = 0;
int seed = (int)(time(NULL) * 100);
bool mp = false;
bool mp = true;
int seed_orig = seed;

std::string recover_str =
"N2tTdKAxg9OMsiiw03pQUQEB/wAJEAAAFwMOCA4AAgn/"
"AwUICwMIDgQIDgUIDgYIDgcIDggIDgkEEhQDDQgODAMNCA4OAw4IDhAHCAASGP8HEAATGP"
"8GCBMSGP8JExQg/wYAFRQY/wASaIf/WHJFr9+PQa//"
"5xovCl8ARpcUhQFwPwNfADRfAEpGGTtwXwI0XwM0XwNKRhk7CXAZOwlwGTsJcBk7CXAZOw"
"lwGTsJcBk7CTtwXwtGlxiFAXBfDDRCrwE8SglEPF8MSkYZO3BfDjRCpwM8SgkJRDxfDkpG"
"GTtwXxA0Qq8DPEoJCQlEPF8QSkYZO3BfEzRKBM8IhM8IcF8VNEoEzwiECc8IhNcFzwhwOA"
"ABADUzMDkAAP/vPkAoWresPYM73T0n/vxEChkQ3+J9rUz3huZgnD7e4/eT4BKIPRD/"
"xbYnVpit54qRsvILMA2DZoxP3SYFJmP+"
"pEQHodLSdiHGxclAK7D6T0p1mjqgJDcbsbd0qxtu58ppev57rHTVkM296iR5yv2FQ6XdEg"
"/EX+"
"W5FDTh2bW3SpjFJwmmMwelm6HFQ7xiFlQkFheFWMntRIXpdqayzZ1wzEcDRZ1kalQCupEd"
"pRv7H+xP92XdeQKI74vnCG90AuS6rqff3/b1kVjmREiNz5O/"
"NST3r61zyghhvKZEeMW9nX+sA68keHa8NOQk+r+Q5EbkreU9ihvyHsNQoqap/"
"5QxqoEfOKKJC7PLfxBHvOawW61Oonr0Y0DcNdgoJzeslyLtMkCDoQVuwcjN2hqb/"
"EDfZ0QAAAAA/Yv6NDauaIUxH2DjyH0EOYQ1SWv5/w==";
std::string recover_str;
for (int i = 1; i < argc; i++) {
std::string arg = argv[i];
if (arg == "-s") {
Expand Down

0 comments on commit ee0a74e

Please sign in to comment.