Intelligent multi-language code patcher with modular architecture.
- Modular Architecture: Easy to extend with new language modules
- Semantic Code Analysis: Advanced AST-based parsing (not regex!)
- Multiple Languages: JavaScript, TypeScript, C# support
- Diff Engine: Create and apply unified diffs without Git dependency
- Visual Interface: Professional WinForms GUI
- Cross Platform UI: Reference Avalonia version for Linux
- Backup System: Automatic backups before patching
- JavaScriptModule: JavaScript/TypeScript analysis and patching
- CSharpModule: C# analysis and patching (to be added)
- DiffModule: Unified diff creation and application (to be added)
- BackupModule: Backup management (to be added)
- Create a class that inherits from BaseModule
- Implement required interfaces (ICodeAnalyzer, IPatcher, etc.)
- Place in Modules folder
- The application will auto-discover and load the module
- Open UniversalCodePatcher.sln in Visual Studio
- Build solution (Ctrl+Shift+B)
- Run (F5)
- Alternatively run the Avalonia UI with:
dotnet run --project UniversalCodePatcher.Avalonia
- File → New Project (select project folder)
- Check files to analyze in project tree
- Project → Scan Files
- Create patch rules in Rules tab
- Apply patches with visual preview
- .NET 6.0 or higher
- Windows OS
- Visual Studio 2022 (for development)
Avalonia dialogs were audited to ensure buttons close their windows and inputs are connected. Debug output was added to verify each handler. Audited windows:
- BackupManagerWindow
- ModuleManagerWindow
- SettingsWindow
- FindWindow
- NewProjectWindow
- AboutWindow and simple dialogs (Confirm, Info, Error)
Some windows still use placeholder data and may need further binding to view models.