2025-04-22 13:47:00 +02:00
2025-04-22 13:47:00 +02:00
2025-04-22 13:47:00 +02:00
2025-04-22 13:47:00 +02:00
2025-04-22 13:01:48 +02:00
2025-04-22 13:47:00 +02:00

nca-to-nsp

A utility to package NCA files into a NSP using the PFS0 format.

This tool works by:

  1. Reading the specified NCA files
  2. Creating a PFS0 header
  3. Combining the header with the NCA files into a single NSP file

Installation

Prerequisites

  • Go 1.24.2 or higher

Building from source

git clone https://github.com/yourusername/nca-to-nsp.git
cd nca-to-nsp
go build -o nca-to-nsp ./cmd/nca-to-nsp

Usage

Basic usage:

nca-to-nsp -o <output-file.nsp> file1.nca [file2.nca ...]

Command-line Options

Flag Default Description
-o out.nsp NSP output file name
-buffer 4096 Buffer size for file copying operations
-progress false Show progress bar
-h false Display help information
-v false Display version information

Example

Create an NSP file from NCA files with progress bar enabled:

./nca-to-nsp -o out.nsp -progress path/to/dir/*.nca

License

BSD-3-Clause, see LICENSE for more information.

Acknowledgments

  • nspBuild for inspiration on how to pack NCAs into NSP.
S
Description
No description provided
Readme BSD-3-Clause 35 KiB
Languages
Go 100%