How romhackman/mangacv2 works
MangaCV2 is a Windows SDL2 application that searches manga sources, lists chapters, downloads chapter images, builds PDFs, and copies them into a library. Its main workflow is driven by application state and background tasks: search directly or via a local sitemap, choose a result and chapters, then download, convert, and copy. The README also documents settings, cache management, and browsing the PDF library. Several internal calls are supported by the sampled source index; other workflow links are documented by the README, so unsampled details are not inferred.
Main entry points: app.cpp App state and flow · http.cpp HTTP sessions · screens.cpp Screen routing · search.cpp Manga search
Components 23
Application interface
- SDL entry point
src/main.cpp - App state and flow
src/app.cpp - Screen routing
src/screens.cpp - Home and settings UI
src/screen_home.cpp - Search and chapters UI
src/screen_search.cpp - Progress and completion UI
src/screen_progress.cpp - SDL drawing
src/gfx.cpp - Screen layout
include/layout.h
Search and workflow
- Manga search
src/search.cpp - Local sitemap index
src/sitemap.cpp - Current site domain
src/domain.cpp - Chapter listing
src/scraper.cpp
Media processing
- Download orchestration
src/pipeline.cpp - Image downloading
src/downloader.cpp - PDF generation
src/pdf_builder.cpp
Runtime and storage
- App configuration
include/config.h - Library and cache
src/storage.cpp - User settings
src/settings.cpp - Background task and progress
src/task.cpp - HTTP sessions
src/http.cpp
Other components
- User
- Anime-Sama
- Local filesystem
Connections 31
- User → SDL entry point: uses
README.md - SDL entry point → App state and flow: starts
src/main.cpp - SDL entry point → Screen routing: dispatches UI
src/main.cpp - Screen routing → Home and settings UI: routes screens
- Screen routing → Search and chapters UI: routes screens
- Screen routing → Progress and completion UI: routes screens
- Home and settings UI → SDL drawing: draws with
src/screen_home.cpp - Search and chapters UI → SDL drawing: draws with
src/screen_search.cpp - Progress and completion UI → SDL drawing: draws with
src/screen_progress.cpp - App state and flow → Manga search: runs search
src/app.cpp - App state and flow → Local sitemap index: updates index
src/app.cpp - App state and flow → Chapter listing: gets chapters
src/app.cpp - App state and flow → Download orchestration: starts download
README.md - App state and flow → Background task and progress: runs in background
- App state and flow → Library and cache: reads library
- App state and flow → User settings: uses settings
- Manga search → HTTP sessions: requests pages
src/search.cpp - Manga search → Current site domain: uses site domain
src/search.cpp - Local sitemap index → HTTP sessions: fetches sitemap
src/sitemap.cpp - Local sitemap index → Current site domain: uses site domain
src/sitemap.cpp - Chapter listing → HTTP sessions: fetches scan
src/scraper.cpp - Manga search → Anime-Sama: queries
README.md - Chapter listing → Anime-Sama: reads chapters
- Download orchestration → Image downloading: downloads images
src/pipeline.cpp - Download orchestration → PDF generation: builds PDFs
src/pipeline.cpp - Download orchestration → Library and cache: copies output
src/pipeline.cpp - Image downloading → HTTP sessions: downloads files
- PDF generation → Local filesystem: writes PDFs
README.md - Library and cache → Local filesystem: reads and writes
- User settings → Local filesystem: persists settings
README.md - HTTP sessions → Anime-Sama: sends requests