How tcnoco/tcno-acc-switcher works
Project type and purpose
• This is a full-stack, multi-process desktop application whose primary function is to let users switch between game platform accounts by swapping files and registry keys.
• It combines native C++ installers and wrappers, .NET WPF desktop front-ends (Client, Tray, Updater), an ASP.NET Core Razor Pages “local server” for UI and logic, and a shared C# library for file/registry operations. External web APIs (GitHub releases, tcno.co version/update endpoints) and packaging scripts (NSIS, NodeJS) complete the ecosystem.
File-structure breakdown
• Installer (C++ Win32) – Installer.cpp, progress_bar.cpp, runtime checks
• TcNo-Acc-Switcher-Globals (C# .DLL) – file/registry/process helpers, logging, localization
• TcNo-Acc-Switcher-Server (ASP.NET Core Razor) – Program.cs, Startup.cs, Pages/, Shared/, Data/, wwwroot/ (static assets & themes)
• TcNo-Acc-Switcher-Client (WPF + CefSharp) – App.xaml, MainWindow.xaml, CefHandlers.cs
• TcNo-Acc-Switcher-Tray (C# console/tray) – Program.cs, Resources
• TcNo-Acc-Switcher-Updater (WPF) – App.xaml, MainWindow.xaml, Logger.cs
• _Updater_Wrapper (C++ native) – elevates & applies binary patches
• runas (C# helper) – elevates file/registry commands
• other/NSIS + other package scripts (NodeJS) – packaging, FTP upload
• other/tcno.co/api (PHP) – remote version & update endpoints