From 5013db22b16ece31a7dc7e112a1e35f4e8c92e42 Mon Sep 17 00:00:00 2001 From: arabian Date: Sun, 23 Mar 2025 14:46:25 +0300 Subject: [PATCH] + README.ru.md --- README.md | 5 +++++ README.ru.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 README.ru.md diff --git a/README.md b/README.md index 34f3465..c50a886 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[English](README.md) | [Русский](README.ru.md) + # build_msp _A tool that helps to build .msp file mod_ @@ -15,6 +17,9 @@ Options: -V, --version Print version ``` +- **--input** - the source directory with the mod files +- **--output** - path to the .msp file +- **--manifest** - path to the manifest ### Manifest example ``` diff --git a/README.ru.md b/README.ru.md new file mode 100644 index 0000000..eebaa79 --- /dev/null +++ b/README.ru.md @@ -0,0 +1,52 @@ +[English](README.md) | [Русский](README.ru.md) + +# build_msp +_Утилита для создания модов в формате .msp_ + +--- + +### Как использовать +``` +Usage: build_msp [OPTIONS] + +Options: + -i, --input [default: .] + -o, --output [default: mod.msp] + -m, --manifest [default: ./manifest] + -h, --help Print help + -V, --version Print version + +``` +- **--input** - исходная директория с файлами мода +- **--output** - путь к конечному .msp файлу +- **--manifest** - путь к манифесту мода + +### Пример манифеста +``` +titleid=0100D3F008746000 +version=65536 +patchset=kpnp_russ +``` +- titleid - title_id игры (обязательно) +- version - рекомендуемая версия игры (опционально) +- patchset- название для директории с .ips патчами (опционально) + +### Установка с помощью cargo +Вы можете установить build_msp из crates.io +```cargo install build_msp``` + +### Сборка +1. Установите [Rust Lang](https://www.rust-lang.org/tools/install) +2. Клонируйте этот репозиторий (включая субмодуль switch-tools) + + ```git clone --recursive https://github.com/arabianq/build_msp``` +3. Запустите сборку с помощью cargo + + ```cd build_msp; cargo build --release``` +4. Готово. Теперь в директории _target/release_ находится исполняемый файл + +### Особенности +- **Устанавливать .msp файлы можно только с помощью DBI (Duckbill Installer) 772+. [Последняя версия DBI](https://dbi.ultranx.ru/assets/dbi_ru.zip)** +- **build_romfs** и **build_pfs0** взяты из [switch-tools](https://github.com/switchbrew/switch-tools) +- Поддерживаются romfs, exefs и ips моды +- Поддерживаются confg.ini и icon.jpg \ No newline at end of file