# Changelog *Last Updated: June 22, 2025* All notable changes to the ROM Groomer project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ### Added - Comprehensive project documentation (README, ROADMAP, CONTRIBUTING) - Project restructuring from `bin` to `rom-organizer` directory - Standardized naming conventions for build scripts - **`build-nes-all.sh`** - New testing script for NES ROM organization without 1G1R filtering - **Processor architecture** - Clear separation between entry points and processing engines - **Professional script structure** - Function-based architecture with comprehensive documentation - **Smart alphabetical grouping system** - Advanced ROM organization with sub-letter splitting for massive collections - **Large-scale testing validation** - Comprehensive testing with 5,803 NES ROMs demonstrating robust organization capabilities - **`scan-archives.sh`** - Comprehensive archive maintenance and cleanup utility with the following features: - Multi-format archive support (ZIP, 7Z, RAR, TAR, GZ, BZ2, XZ, LZ, LZMA, Z) - Parallel corruption testing with configurable job limits (1-8 parallel jobs, default 4) - Case-insensitive filename collision detection for Windows/FAT32 compatibility - Interactive deletion prompts with detailed file information and batch operations - Comprehensive logging and error handling with integration to existing logger.sh - Support for compound archive extensions (.tar.gz, .tar.bz2, .tar.xz) - Dry-run mode for safe preview of operations - Dependency checking for all required archive tools - Tested with real-world archive collections including corrupted files and case collisions ### Fixed - **`sort2folders.sh`** - Fixed critical bug where files starting with numbers/symbols were incorrectly falling back to "Other" directory instead of being properly grouped into `#` ranges. Character normalization now happens at the beginning of matching logic, ensuring files like `'89 Dennou Kyuusei Uranai`, `8 Eyes`, and `[BIOS]` files are correctly placed in appropriate `#`, `##`, or `#A-#Z` directories. ### Changed - Renamed project directory from `bin` to `rom-organizer` - Updated README.md with comprehensive project overview - Reorganized file structure for better maintainability - **MAJOR REFACTOR**: Renamed worker scripts to processor pattern: - `build-nointro-system.sh` → `nointro-processor.sh` - `build-redump-system.sh` → `redump-processor.sh` - **Standardized all 67 build scripts** from simple one-liners to professional structure: - Removed hardcoded `sudo -u aubrey` calls - Added `umask 000` for proper file permissions - Added comprehensive documentation headers - Implemented function-based architecture with error handling - Added integrated logging (DEBUG/INFO/ERROR levels) - Updated script count from 90 to 91 scripts ### Removed - Obsolete copilot workaround system (`copilot-txt/` directory and `generate-copilot-txt-links.sh`) - Legacy documentation files (archived to `archive/legacy-docs/`) - Reduced script count from 91 to 90 scripts ## [Previous Versions] ### Historical Development The ROM Groomer project evolved from a collection of ad-hoc scripts: #### Early Development (2024) - Initial ROM organization scripts - Platform-specific build scripts for major consoles - Basic pipeline: source → filter → organize #### January 2025 - Architecture Refinement - Defined clear processing stages: Sync → Transform → Convert → Organize → Share - Established directory structure standards - Integrated ROM manager transformations (No-Intro, Redump) - Added format conversion pipeline (ZIP → ISO → CHD) - Implemented list-based organization for curated collections #### Processing Pipeline Evolution - **Source Management**: Sync scripts with verification and corruption detection - **ROM Manager Integration**: 1G1R filtering and DAT-based transformations - **Format Conversion**: Automated decompression and format optimization - **Organization System**: Subdirectory creation with metadata application - **Distribution Preparation**: Size-optimized collections for different platforms #### Archive Snapshots - `bin-2-28-25/`: February 28, 2025 snapshot - `bin-3-1-25/`: March 1, 2025 snapshot - `bin-6-18-25/`: June 18, 2025 snapshot - `bin.bak/`: Backup of previous versions #### Key Milestones - First multi-platform support - Introduction of 1G1R filtering - Region-specific build variants (USA, English, All) - Format conversion utilities - Remote ROM source integration (rclone) ### Migration Notes When upgrading from previous versions: 1. **Directory Structure**: Project moved from `bin/` to `rom-organizer/` 2. **Configuration**: Check `config.sh` for updated path references 3. **Scripts**: All functionality preserved, improved error handling 4. **Documentation**: New comprehensive documentation available ## Future Versions See [ROADMAP.md](ROADMAP.md) for planned future releases and features.