How supakan1223-ui/trombone-champ-switch-cfw-project works
The repository contains three command-line utilities: TexturePatcher for inspecting and modifying Unity AssetBundles, TrombConverter for reading and writing saved-level data, and AudioPatcher, whose implementation is not described by the sampled source. The main evidenced workflow is a user invoking TexturePatcher commands, which dispatch to analysis or patching components; texture patching encodes image data and updates bundle resources. TrombConverter converts JSON into serialized SavedLevel data and can read that data back. AudioPatcher is shown only as a separate executable; its behavior is uncertain.
Main entry points: Program.cs Command Router · PatchBgCommand.cs Background Patch · PatchCommand.cs Texture Patch · BackgroundAnalyzer.cs Background Analyzer
Components 19
Texture CLI
- Command Router
TexturePatcher/Program.cs - Image Info
TexturePatcher/Commands/InfoCommand.cs - Texture Listing
TexturePatcher/Commands/ListCommand.cs
Bundle Inspection
- Background Inspect
TexturePatcher/Commands/InspectCommand.cs - Bundle Analysis
TexturePatcher/Commands/AnalyzeCommand.cs - Background Analyzer
TexturePatcher/Core/BackgroundAnalyzer.cs - Asset Field Helpers
TexturePatcher/Util/AssetField.cs - Background Candidate
TexturePatcher/Models/BgCandidate.cs
Bundle Editing
- Texture Patch
TexturePatcher/Commands/PatchCommand.cs - Background Patch
TexturePatcher/Commands/PatchBgCommand.cs - Renderer Hiding
TexturePatcher/Commands/HideCommand.cs - Renderer Hider
TexturePatcher/Core/RendererHider.cs - Bundle Texture I/O
TexturePatcher/Core/BundleTextureIO.cs - Texture Codec
TexturePatcher/Core/TextureCodec.cs
Level Conversion
- Tromb Converter
TrombConverter/Program.cs - Saved Level Model
TrombConverter/SavedLevel.cs - Custom Song Data
TrombConverter/SongDataCustom.cs
Audio Utility
- Audio Patcher
AudioPatcher/Program.cs
Other components
- User
Connections 23
- User → Command Router: runs command
TexturePatcher/Program.cs - Command Router → Image Info: dispatches info
TexturePatcher/Program.cs - Command Router → Texture Listing: dispatches list
TexturePatcher/Program.cs - Command Router → Background Inspect: dispatches inspect
TexturePatcher/Program.cs - Command Router → Bundle Analysis: dispatches analyze
TexturePatcher/Program.cs - Command Router → Texture Patch: dispatches patch
TexturePatcher/Program.cs - Command Router → Background Patch: dispatches patchbg
TexturePatcher/Program.cs - Command Router → Renderer Hiding: dispatches hide
TexturePatcher/Program.cs - Background Inspect → Background Analyzer: finds candidate
TexturePatcher/Commands/InspectCommand.cs - Background Inspect → Texture Codec: formats output
TexturePatcher/Commands/InspectCommand.cs - Bundle Analysis → Background Analyzer: finds targets
TexturePatcher/Commands/AnalyzeCommand.cs - Background Analyzer → Asset Field Helpers: uses helpers
TexturePatcher/Core/BackgroundAnalyzer.cs - Texture Patch → Bundle Texture I/O: finds texture
TexturePatcher/Commands/PatchCommand.cs - Texture Patch → Texture Codec: encodes image
TexturePatcher/Commands/PatchCommand.cs - Texture Patch → Asset Field Helpers: uses helpers
TexturePatcher/Commands/PatchCommand.cs - Bundle Texture I/O → Asset Field Helpers: reads fields
TexturePatcher/Core/BundleTextureIO.cs - Background Patch → Background Analyzer: selects targets
TexturePatcher/Commands/PatchBgCommand.cs - Background Patch → Bundle Texture I/O: reads resources
TexturePatcher/Commands/PatchBgCommand.cs - Background Patch → Texture Codec: encodes textures
TexturePatcher/Commands/PatchBgCommand.cs - Background Patch → Renderer Hiding: uses hide logic
TexturePatcher/Commands/PatchBgCommand.cs - User → Tromb Converter: runs conversion
TrombConverter/Program.cs - Tromb Converter → Saved Level Model: serializes model
TrombConverter/Program.cs - Tromb Converter → Saved Level Model: deserializes model
TrombConverter/Program.cs