Add FTP and magnet backends, tracker and proxy settings, and organize client modules

Integrate pinned libcurl, libtorrent and static OpenSSL dependencies with license notices. Enable verified HTTPS trackers and authenticated HTTP/SOCKS5 proxies, add tracker TXT import without arbitrary list caps, and allow resizing the main window.

Organize client sources by responsibility and update Visual Studio projects, filters and tests. Debug and Release builds passed, along with UI, HTTP, tracker import and browser bridge regressions. Full protocol tests have an unresolved intermittent HTTPS tracker wait timeout; Windows 7 runtime validation remains outstanding.
This commit is contained in:
tongtong committed 2026-11-27 11:28:30 +08:00
1 parent a787f470ed
commit eb3df9aa3d
63 files changed
+2185 -100

No files matched your search

+3 -3
View File
@@ -1,6 +1,6 @@
#include "stdafx.h"
#include "ttui/application.h"
#include "downloader_form.h"
#include "ui/downloader_form.h"
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
@@ -15,7 +15,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
const std::wstring command=GetCommandLineW();
StartupOptions startup;
if (!ParseStartupCommandLine(command,startup)) {
MessageBoxW(nullptr,L"启动参数无效。\n用法:ttdownloader.exe --add \"https://example.com/file.zip\"\n也可直接传入下载地址,或使用 --add 打开空白添加窗口。",L"TTDownloader",MB_ICONERROR);
MessageBoxW(nullptr,L"启动参数无效。\n用法:ttdownloader.exe --add \"https://example.com/file.zip\"\n也可直接传入 HTTP/FTP/磁力下载地址,或使用 --add 打开空白添加窗口。",L"TTDownloader",MB_ICONERROR);
return 1;
}
HANDLE instance_mutex = ::CreateMutexW(nullptr, TRUE, L"Local\\TTDownloader.SingleInstance");
@@ -49,7 +49,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
DownloaderForm form;
int result=ttui::RunApplication([&] {
if (!form.Create(nullptr,DownloaderForm::kClassName.c_str(),L"TTDownloader",940,640,true)) {
if (!form.Create(nullptr,DownloaderForm::kClassName.c_str(),L"TTDownloader",940,640,true,true)) {
MessageBoxW(nullptr,L"无法创建主窗口。",L"TTDownloader",MB_ICONERROR); return false;
}
form.CenterWindow(); form.ShowWindow(); form.OpenStartupRequest(startup); return true;