From b83feac4628e29d5067ceb462ff6f8a1487799b0 Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Sat, 6 Jan 2024 16:08:44 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4Sample=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E8=BF=90=E8=A1=8C=E6=97=B6=E9=87=8D=E5=A4=8D=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E5=A4=96=E6=9C=8D=E8=B5=84=E6=BA=90=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E4=BA=A7=E7=94=9F=E6=BD=9C=E5=9C=A8=E7=9A=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Cpp/main.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/Cpp/main.cpp b/src/Cpp/main.cpp index 5776b3942c..c59cce8783 100644 --- a/src/Cpp/main.cpp +++ b/src/Cpp/main.cpp @@ -20,7 +20,7 @@ int main([[maybe_unused]] int argc, char** argv) return -1; } -#ifdef SMOKE_TESTING +#ifdef ASST_DEBUG if (argc >= 2) { std::string overseas_type(argv[1]); // "YoStarJP", "YoStarEN", "YoStarKR", "txwy" std::cout << "load overseas_type:" << overseas_type << std::endl; @@ -31,22 +31,6 @@ int main([[maybe_unused]] int argc, char** argv) return -1; } } -#elif defined(ASST_DEBUG) - bool load_error = false; - const auto overseas_dir = cur_path / "resource" / "global"; - for (const auto& client : { "YoStarJP", "YoStarEN", "YoStarKR", "txwy" }) { - const auto overseas_path = overseas_dir / client; - bool loaded = AsstLoadResource(cur_path.string().c_str()); - // 增量更新外服的资源 - loaded &= AsstLoadResource(overseas_path.string().c_str()); - if (!loaded) { - load_error = true; - std::cerr << "-------- load resource failed: " << client << " --------" << std::endl; - } - } - if (load_error) { - return -1; - } #endif auto ptr = AsstCreate();