How gaming-with-portals/cruelerthandat works
CruelerThanDAT is a desktop tool for viewing and editing game assets across several titles. Its central workflow is opening game files, inspecting them in the application, and editing or extracting supported content. The README also documents model and scene viewing, multiple file editors, audio ripping, and CPK browsing. The excerpts show CPK table parsing and WMB4 parsing, but do not expose the application’s main dispatch or most editor implementations; uncertain connections are therefore omitted.
Main entry points: CPKManager.cpp CPK Browser · CruelerThanDAT.cpp Desktop Application · FileNodes.h Open File UI · BinaryHandler.h Binary I/O
Components 18
Application
- Desktop Application
CruelerThanDAT/CruelerThanDAT.cpp - Open File UI
CruelerThanDAT/inc/FileNodes.h - File Nodes
CruelerThanDAT/src/FileNodes.cpp
Asset Viewing
- WMB/SCR Viewer
CruelerThanDAT/inc/WMB/WMBModel.h - WMB Parser
CruelerThanDAT/src/WMB/WMBParser.cpp - Texture Handling
CruelerThanDAT/src/TextureHelper.cpp - Model Camera
CruelerThanDAT/src/Camera.cpp
File Editing
- DAT Editor
CruelerThanDAT/inc/CTDDocument.h - BXM Editor
CruelerThanDAT/inc/CTDDocument.h - LY2 Editor
CruelerThanDAT/inc/CTDDocument.h
Archives And Audio
- BNK Viewer
CruelerThanDAT/src/Wwise/wwise.cpp - WEM Ripping
CruelerThanDAT/src/Wwise/wwise.cpp - CPK Browser
CruelerThanDAT/src/CPKManager.cpp - CPK Contents
CruelerThanDAT/inc/CPKManager.h
Shared Runtime
- Binary I/O
CruelerThanDAT/inc/BinaryHandler.h - File Utilities
CruelerThanDAT/src/FileUtils.cpp - Settings And Model
CruelerThanDAT/inc/CTDSettings.h
Other components
- User
Connections 7
- User → Desktop Application: uses
- Desktop Application → Open File UI: presents
- Open File UI → File Nodes: opens files
- WMB Parser → Binary I/O: reads bytes
- CPK Browser → Binary I/O: parses tables
- CPK Browser → CPK Contents: builds contents
- CPK Browser → File Utilities: extracts files