diff --git a/src/algo.cpp b/src/algo.cpp index e2f64e4..95aa090 100644 --- a/src/algo.cpp +++ b/src/algo.cpp @@ -340,7 +340,7 @@ int Access(const char *filename, int mode){ if (filename_string.find("data/") == 0) full_filename = Header::appledatafolderprefix + filename; #endif - std::cout << "Access " << full_filename << std::endl; + // std::cout << "Access " << full_filename << std::endl; return access(full_filename.c_str(), mode); } @@ -353,7 +353,7 @@ CJsonObject ReadJSON(const std::string &filename){ if (filename.find("data/") == 0) full_filename = Header::appledatafolderprefix + filename; #endif - std::cout << "ReadJSON " << full_filename << std::endl; + // std::cout << "ReadJSON " << full_filename << std::endl; auto f = fopen(full_filename.c_str(), "r"); for (; ; ){ int length = fread(buffer, 1, JSONBUFFERSIZE - 1, f); diff --git a/src/analyzer.cpp b/src/analyzer.cpp index 1a84232..be19101 100644 --- a/src/analyzer.cpp +++ b/src/analyzer.cpp @@ -2076,7 +2076,7 @@ void analyzetenhou(const std::string &dataf, const std::string &source, const st } void analyzemain(const std::string &dataf, const std::string &source, const std::string &id, CJsonObject &config){ - std::cout << "Go into main" << std::endl; + // std::cout << "Go into main" << std::endl; auto &filter = config["filter"]; PaipuAnalyzer pa = PaipuAnalyzer(filter); int paipunum = 0; @@ -2154,9 +2154,9 @@ void analyzemain(const std::string &dataf, const std::string &source, const std: } else{ std::vector paipus; - std::cout << "Read paipu file: " << dataf + "/" + source + "/" + id + "/paipus.txt" << std::endl; + // std::cout << "Read paipu file: " << dataf + "/" + source + "/" + id + "/paipus.txt" << std::endl; auto paipuarr = Algo::ReadJSON(dataf + "/" + source + "/" + id + "/paipus.txt"); - std::cout << "Read paipu file success: " << dataf + "/" + source + "/" + id + "/paipus.txt" << std::endl; + // std::cout << "Read paipu file success: " << dataf + "/" + source + "/" + id + "/paipus.txt" << std::endl; for (int i = 0; i < paipuarr.GetArraySize(); i ++ ) paipus.push_back(&paipuarr[i]); //int step = paipus.size() - 1; diff --git a/src/main.cpp b/src/main.cpp index e07e999..f8ad686 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -50,18 +50,18 @@ namespace MAIN{ } _findclose(findi2); #elif defined(__linux) || defined(__APPLE__) - std::cout << "try to open: " << dataprefix + "data/" + source << std::endl; + // std::cout << "try to open: " << dataprefix + "data/" + source << std::endl; DIR *dirptr = opendir((dataprefix + "data/" + source).c_str()); - std::cout << "open success: " << dataprefix + "data/" + source << std::endl; + // std::cout << "open success: " << dataprefix + "data/" + source << std::endl; dirent *entry; while (entry = readdir(dirptr)){ - std::cout << "entry id: " << entry -> d_name << std::endl; + // std::cout << "entry id: " << entry -> d_name << std::endl; ids.push_back(entry -> d_name); if (*ids.rbegin() == "." || *ids.rbegin() == ".." || *ids.rbegin() == "0") ids.pop_back(); } closedir(dirptr); - std::cout << "close success: " << dataprefix + "data/" + source << std::endl; + // std::cout << "close success: " << dataprefix + "data/" + source << std::endl; #else Out::cout << I18N::get("MAIN", "MACROUNDEFINED") << '\n'; PAUSEEXIT; @@ -100,16 +100,16 @@ namespace MAIN{ #else std::vector ids = findid(Header::datafolderprefix, source, id); #endif - std::cout << "ID: " << id << std::endl; + // std::cout << "ID: " << id << std::endl; if (!ids.size()){ Out::cout << I18N::get("MISC", "ERROR") + I18N::get("MAIN", "CANTDATA/SRC/*") + source + I18N::get("MAIN", "CANTDATA/SRC/*AFT") + "\n"; PAUSEEXIT; return 1; } - std::cout << "Try to print to Out" << std::endl; + // std::cout << "Try to print to Out" << std::endl; Out::cout << '\n'; Out::cout << I18N::get("MAIN", "SRC") + I18N::get("MISC", "COLON") + source + "\n"; - std::cout << "Try to print to Out Success" << std::endl; + // std::cout << "Try to print to Out Success" << std::endl; std::string outputid = id; #ifdef _WIN32 outputid = Algo::UTF82GBK(outputid); @@ -146,7 +146,7 @@ int main(int argc, char *argv[]){ //Algo::testtenpai(); return 0; auto rcres = readconfig(); - std::cout << "Read Config Result: " << rcres << std::endl; + // std::cout << "Read Config Result: " << rcres << std::endl; if (rcres == 1) return 0; if (argc > 1 && argv[1] == std::string("--tenhou-basedata")){