Skip to content

Commit 0df2b87

Browse files
fix: fix crash
1 parent 5dd152a commit 0df2b87

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/PluginManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,9 @@ void PluginManager::performForceInstallAndUpdateSync(const std::string& source,
430430
std::cout << "[ BetterNCM ] [Plugin Remote Tasks] Failed to check update on " << source << ": " << e.what() << "." << std::endl;
431431
}else {
432432
const auto onlineConfig = util::FetchWebContent("https://microblock.cc/bncm-config.txt");
433-
const auto marketConf = onlineConfig.split(L"\n")[1];
433+
const auto marketConf = onlineConfig.split(L"\n")[0];
434434
std::cout << "[ BetterNCM ] [Plugin Remote Tasks] Failed to check update on " << source << ": " << e.what() << " , fallbacking to default..." << std::endl;
435-
performForceInstallAndUpdateSync(BNString(marketConf).utf8(), isRetried);
435+
performForceInstallAndUpdateSync(BNString(marketConf).utf8(), true);
436436
}
437437

438438
}

src/js-framework

0 commit comments

Comments
 (0)