Add cross-platform BLE transport and Bluetooth settings

Integrate shared C transport with desktop and Android frontends, add radio probes and detailed Windows diagnostics, and fix GUI build dependencies and early configuration startup errors.
This commit is contained in:
evgeny committed 2026-10-29 10:51:19 +01:00
1 parent 25cea8ca4c
commit f5bac950d1
82 files changed
+6608 -146

No files matched your search

+10 -2
View File
@@ -25,7 +25,6 @@
#include "desktop_integration.h"
#include "gui_log.h"
#include "config_parser.h"
#include "../../../src/config_updater.h"
#include <cstdio>
#include <cstring>
#include <cerrno>
@@ -170,6 +169,14 @@ int main(int argc, char *argv[]) {
return 1;
}
/* Ошибка подготовки INI возможна ещё до чтения debug_file из профиля. */
const QByteArray startupLogPath = (cfgDir + "/chatgui.log").toUtf8();
debug_enable_file_output(startupLogPath.constData(), 0);
DEBUG_INFO(DEBUG_CATEGORY_CONFIG, "GUI startup: version=%s config_directory=%s", qPrintable(app.applicationVersion()), qPrintable(cfgDir));
#ifdef _WIN32
DEBUG_INFO(DEBUG_CATEGORY_CONFIG, "Windows storage selection: %s", qPrintable(storageReason));
#endif
app.setStyle(QStyleFactory::create("Fusion"));
QPalette p;
p.setColor(QPalette::Window, QColor(32, 32, 32));
@@ -200,10 +207,11 @@ int main(int argc, char *argv[]) {
QFile::rename(cfgDir + "/chatgui.cfg", cfgPath);
NodeConfig cfg(cfgPath);
if (cfg.exists() && (config_ensure_keys_and_node_id(cfgPath.toUtf8().constData()) != 0 || !cfg.load())) {
if (cfg.exists() && !cfg.prepare()) {
DEBUG_ERROR(DEBUG_CATEGORY_CONFIG, "Cannot prepare/read GUI configuration: %s", qPrintable(cfgPath));
QMessageBox failure(QMessageBox::Critical, "vibechat",
QCoreApplication::translate("ChatGui", "Invalid configuration:\n%1").arg(cfgPath), QMessageBox::Ok);
failure.setInformativeText(cfg.errors().join('\n'));
instance.setWindow(&failure);
failure.exec();
instance.setWindow(nullptr);