Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ __pycache__/
*.xci
*.xcz
*.nsp
*.nup
*.nsz
*.nca
dump/
Expand Down
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ deps-windows:
dist:
@[ -f build/deps-win/lib/libavcodec.dll.a ] || { echo "make deps-windows first (LGPL FFmpeg)"; exit 1; }
@[ -d build/helper/swgen ] || { echo "make gen-helper first (the game code generator)"; exit 1; }
@[ -x build/helper/nxpatch/nxpatch.exe ] || { echo "make package-helper first (the NSP reader)"; exit 1; }
@! find tools -maxdepth 1 -name '*.py' -newer build/helper/swgen/swgen.exe | grep -q . || \
{ echo "make gen-helper first: tools/*.py changed since build/helper/swgen was frozen"; exit 1; }
@[ -x build/zig/zig.exe ] || { echo "tools/fetch_zig.sh first (the compiler)"; exit 1; }
Expand All @@ -451,6 +452,7 @@ dist:
tools/zig_slim.sh $(strip $(filter-out -Iruntime,$(GENFLAGS))) \
$(if $(GENFLAGS_COMPAT),-- $(strip $(filter-out -Iruntime,$(GENFLAGS_COMPAT)))) # (zig, its runtime built ahead of time)
cp -R build/helper/swgen "$(DIST)/"
cp -R build/helper/nxpatch "$(DIST)/"
cp -R build/zig-slim "$(DIST)/zig"
cp runtime/cpu.h runtime/simd.h runtime/simd_fp.h runtime/simd_softfma.h runtime/gamelib.h tools/gamelib_entry.c \
runtime/hle/hle_symbols.txt "$(DIST)/gamelib-src/"
Expand Down Expand Up @@ -503,11 +505,15 @@ gen-helper: build/gen-venv/.ok
$(if $(filter windows,$(PLATFORM)),$(GEN_VPY) tools/pe_no_cfg.py build/helper/swgen/swgen.exe)
@du -sh build/helper/swgen

build/gen-venv/.ok:
build/gen-venv/.ok: Makefile
$(GEN_PY) -m venv build/gen-venv
$(GEN_VPY) -m pip install -q capstone==5.0.9 unicorn==2.1.4 lz4==4.4.5 pyinstaller==6.22.3
$(GEN_VPY) -m pip install -q capstone==5.0.9 unicorn==2.1.4 lz4==4.4.5 pyinstaller==6.22.3 zstandard==0.25.0
touch $@

.PHONY: package-helper
package-helper:
bash tools/build_package_helper.sh $(if $(filter windows,$(PLATFORM)),win-x64,linux-$(if $(filter aarch64,$(ARCH)),arm64,x64)) build/helper/nxpatch

# Linux: build/dist/Savage_Wind-<version>-<arch>.AppImage, built in Ubuntu 22.04 containers (podman) with SDL3, LGPL
# FFmpeg, shaderc and the game code generator helper inside; the Vulkan loader and GPU drivers are the system's.
# `make appimage` (ARCH: this machine's, or aarch64 cross-compiled), `make appimages` both. See docs/linux.md.
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ about 20 GB of free disk space.
- **Linux and Steam Deck:** the file ending in `x86_64.AppImage`. Make it executable and run it
([docs/linux.md](docs/linux.md)).
- **Linux on ARM:** the file ending in `aarch64.AppImage`. It is highly experimental.
2. Start it and choose the folder with your extracted game (`exefs/` and `romfs/`). Then choose **Set up game files**.
2. Start it and choose the folder with your extracted game (`exefs/` and `romfs/`), or choose **Import game packages**
to extract local NUP or NSP files into a new folder. Then choose **Set up game files**.
It checks the version, copies the files and recompiles the game code once, about 15 minutes on a 12-thread CPU.
Your own files aren't changed.
3. Play. Settings and languages are in the game's Options. **Savage Wind Configuration** has your game files and the
Expand Down
1 change: 1 addition & 0 deletions docs/BUILD-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Run from a shell that has `C:\msys64\ucrt64\bin` on PATH (SDL3, FFmpeg, Vulkan,
## Package
make deps-windows # once: FFmpeg built as LGPL only (build/deps-win; downloads its source, needs nasm)
make gen-helper # the game code generator without Python (build/helper/swgen)
make package-helper # the NSP reader (requires the .NET 10 SDK on the build machine)
tools/fetch_zig.sh # the compiler the start screen builds the game code with (build/zig)
make dist # -> build/dist/SavageWind-<version>-windows.zip (no game code inside)

Expand Down
12 changes: 12 additions & 0 deletions docs/game-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ extracted/
The `main` module's build id tells the exact version; `python tools/sw_probe.py` (it reads `extracted/exefs`)
prints it and what the recompiler will find there.

## Importing packages

On Windows and Linux, choose **Import game packages** on the game files page. Select a combined NUP or select
the base, update and DLC packages together. Review the identified content, source files and release versions,
then choose **Extract packages**. A game NUP must contain the **1.9.0** RomFS. For a game imported from NSP,
select the base and matching update together. The importer checks the merged RomFS version before extraction.
If you select several updates, it checks the newest one. DLC-only imports can be extracted separately.
Encrypted NSPs need your local keys file.

The launcher extracts into a new `extracted-import-*/files/` folder in the data directory and selects that
folder for you. Choose **Set up game files** to check the game version and install the extracted files.

## The DLC

Each DLC's RomFS goes in a folder of its own, named `aoc1/` and `aoc2/` as above, with its folders right inside it
Expand Down
2 changes: 1 addition & 1 deletion docs/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ stb_image_write in `third_party/stb`.)

Then from the repo root:

python3 -m venv tools/venv && tools/venv/bin/pip install lz4 capstone unicorn
python3 -m venv tools/venv && tools/venv/bin/pip install lz4 capstone unicorn zstandard
make -j # the start screen only (no game code yet): set up the game files there, or put extracted/ here
make gen # once: recompile the game from your own game files
make -j # -> build/savagewind and the game code library build/swgame.so
Expand Down
18 changes: 18 additions & 0 deletions runtime/ui/i18n/de.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1556,3 +1556,21 @@ T("Press the sprint button once while moving and Link keeps sprinting until he s
T("30 fps until F5 again", "30 fps bis zum nächsten F5")
T("Frame rate as set again", "Bildrate wieder wie eingestellt")
T("30 fps for a physics puzzle, until pressed again: F5", "30 fps für ein Physikrätsel, bis zum erneuten Drücken: F5")
T("Import game packages", "Spielpakete importieren")
T("Extract NUP or NSP files into a folder for setup.", "NUP- oder NSP-Dateien zur Einrichtung in einen Ordner entpacken.")
T("Choose the keys file for NSP packages", "Schlüsseldatei für NSP-Pakete auswählen")
T("Extracting game packages...", "Spielpakete werden entpackt...")
T("Esc or B cancels the import.", "Esc oder B bricht den Import ab.")
T("Package import cancelled.", "Paketimport abgebrochen.")
T("Packages extracted. Select Set up game files.", "Pakete entpackt. Wähle Spieldateien einrichten.")
T("Could not open the package picker", "Paketauswahl konnte nicht geöffnet werden")
T("Could not extract game packages", "Spielpakete konnten nicht entpackt werden")
T("Package reader is missing", "Paketleser fehlt")
T("Add the matching base game NSP", "Passendes NSP des Basisspiels hinzufügen")
T("No Breath of the Wild content was found", "Keine Inhalte von Breath of the Wild gefunden")
T("Choose one copy of each game package", "Wähle nur eine Kopie jedes Spielpakets")
T("Base game", "Basisspiel")
T("Game update", "Spielupdate")
T("Extract packages", "Pakete entpacken")
T("Inspecting game packages...", "Spielpakete werden geprüft...")
T("Add the version %s update NSP", "NSP für das Spielupdate auf Version %s hinzufügen")
18 changes: 18 additions & 0 deletions runtime/ui/i18n/es.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1555,3 +1555,21 @@ T("Press the sprint button once while moving and Link keeps sprinting until he s
T("30 fps until F5 again", "30 fps hasta volver a pulsar F5")
T("Frame rate as set again", "Frecuencia de cuadros como estaba")
T("30 fps for a physics puzzle, until pressed again: F5", "30 fps para un puzle de física, hasta volver a pulsarla: F5")
T("Import game packages", "Importar paquetes del juego")
T("Extract NUP or NSP files into a folder for setup.", "Extrae archivos NUP o NSP en una carpeta para la configuración.")
T("Choose the keys file for NSP packages", "Elegir el archivo de claves para paquetes NSP")
T("Extracting game packages...", "Extrayendo paquetes del juego...")
T("Esc or B cancels the import.", "Esc o B cancela la importación.")
T("Package import cancelled.", "Importación de paquetes cancelada.")
T("Packages extracted. Select Set up game files.", "Paquetes extraídos. Selecciona Configurar archivos del juego.")
T("Could not open the package picker", "No se pudo abrir el selector de paquetes")
T("Could not extract game packages", "No se pudieron extraer los paquetes del juego")
T("Package reader is missing", "Falta el lector de paquetes")
T("Add the matching base game NSP", "Añade el NSP del juego base correspondiente")
T("No Breath of the Wild content was found", "No se encontró contenido de Breath of the Wild")
T("Choose one copy of each game package", "Elige una sola copia de cada paquete del juego")
T("Base game", "Juego base")
T("Game update", "Actualización del juego")
T("Extract packages", "Extraer paquetes")
T("Inspecting game packages...", "Inspeccionando paquetes del juego...")
T("Add the version %s update NSP", "Añade el NSP de la actualización a la versión %s")
18 changes: 18 additions & 0 deletions runtime/ui/i18n/fr.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1556,3 +1556,21 @@ T("Press the sprint button once while moving and Link keeps sprinting until he s
T("30 fps until F5 again", "30 fps jusqu'au prochain F5")
T("Frame rate as set again", "Fréquence d'images comme réglée")
T("30 fps for a physics puzzle, until pressed again: F5", "30 fps pour une énigme physique, jusqu'au prochain appui : F5")
T("Import game packages", "Importer des paquets de jeu")
T("Extract NUP or NSP files into a folder for setup.", "Extraire les fichiers NUP ou NSP dans un dossier pour la configuration.")
T("Choose the keys file for NSP packages", "Choisir le fichier de clés pour les paquets NSP")
T("Extracting game packages...", "Extraction des paquets de jeu...")
T("Esc or B cancels the import.", "Échap ou B annule l’importation.")
T("Package import cancelled.", "Importation des paquets annulée.")
T("Packages extracted. Select Set up game files.", "Paquets extraits. Sélectionnez Configurer les fichiers du jeu.")
T("Could not open the package picker", "Impossible d’ouvrir le sélecteur de paquets")
T("Could not extract game packages", "Impossible d’extraire les paquets de jeu")
T("Package reader is missing", "Le lecteur de paquets est manquant")
T("Add the matching base game NSP", "Ajoutez le NSP du jeu de base correspondant")
T("No Breath of the Wild content was found", "Aucun contenu de Breath of the Wild trouvé")
T("Choose one copy of each game package", "Choisissez une seule copie de chaque paquet de jeu")
T("Base game", "Jeu de base")
T("Game update", "Mise à jour du jeu")
T("Extract packages", "Extraire les paquets")
T("Inspecting game packages...", "Inspection des paquets de jeu...")
T("Add the version %s update NSP", "Ajoutez le NSP de mise à jour vers la version %s")
18 changes: 18 additions & 0 deletions runtime/ui/i18n/he.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1555,3 +1555,21 @@ T("Press the sprint button once while moving and Link keeps sprinting until he s
T("30 fps until F5 again", "30 fps עד לחיצה נוספת על F5")
T("Frame rate as set again", "קצב הפריימים שוב כפי שהוגדר")
T("30 fps for a physics puzzle, until pressed again: F5", "30 fps לחידת פיזיקה, עד לחיצה נוספת: F5")
T("Import game packages", "ייבוא חבילות משחק")
T("Extract NUP or NSP files into a folder for setup.", "חלצו קובצי NUP או NSP לתיקייה לצורך הגדרה.")
T("Choose the keys file for NSP packages", "בחירת קובץ המפתחות לחבילות NSP")
T("Extracting game packages...", "מחלץ חבילות משחק...")
T("Esc or B cancels the import.", "Esc או B מבטלים את הייבוא.")
T("Package import cancelled.", "ייבוא החבילות בוטל.")
T("Packages extracted. Select Set up game files.", "החבילות חולצו. בחרו בהגדרת קובצי המשחק.")
T("Could not open the package picker", "לא ניתן לפתוח את בורר החבילות")
T("Could not extract game packages", "לא ניתן לחלץ את חבילות המשחק")
T("Package reader is missing", "קורא החבילות חסר")
T("Add the matching base game NSP", "הוסיפו את קובץ ה-NSP של משחק הבסיס המתאים")
T("No Breath of the Wild content was found", "לא נמצא תוכן של Breath of the Wild")
T("Choose one copy of each game package", "בחרו עותק אחד מכל חבילת משחק")
T("Base game", "משחק בסיס")
T("Game update", "עדכון משחק")
T("Extract packages", "חילוץ חבילות")
T("Inspecting game packages...", "בודק חבילות משחק...")
T("Add the version %s update NSP", "הוסיפו את קובץ ה-NSP של העדכון לגרסה %s")
18 changes: 18 additions & 0 deletions runtime/ui/i18n/it.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1556,3 +1556,21 @@ T("Press the sprint button once while moving and Link keeps sprinting until he s
T("30 fps until F5 again", "30 fps fino al prossimo F5")
T("Frame rate as set again", "Frequenza dei fotogrammi come impostata")
T("30 fps for a physics puzzle, until pressed again: F5", "30 fps per un enigma di fisica, finché non la premi di nuovo: F5")
T("Import game packages", "Importa pacchetti di gioco")
T("Extract NUP or NSP files into a folder for setup.", "Estrai i file NUP o NSP in una cartella per la configurazione.")
T("Choose the keys file for NSP packages", "Scegli il file delle chiavi per i pacchetti NSP")
T("Extracting game packages...", "Estrazione dei pacchetti di gioco...")
T("Esc or B cancels the import.", "Esc o B annulla l’importazione.")
T("Package import cancelled.", "Importazione dei pacchetti annullata.")
T("Packages extracted. Select Set up game files.", "Pacchetti estratti. Seleziona Configura i file di gioco.")
T("Could not open the package picker", "Impossibile aprire il selettore dei pacchetti")
T("Could not extract game packages", "Impossibile estrarre i pacchetti di gioco")
T("Package reader is missing", "Manca il lettore dei pacchetti")
T("Add the matching base game NSP", "Aggiungi il file NSP del gioco base corrispondente")
T("No Breath of the Wild content was found", "Nessun contenuto di Breath of the Wild trovato")
T("Choose one copy of each game package", "Scegli una sola copia di ogni pacchetto di gioco")
T("Base game", "Gioco base")
T("Game update", "Aggiornamento del gioco")
T("Extract packages", "Estrai pacchetti")
T("Inspecting game packages...", "Analisi dei pacchetti di gioco...")
T("Add the version %s update NSP", "Aggiungi il file NSP dell’aggiornamento alla versione %s")
18 changes: 18 additions & 0 deletions runtime/ui/i18n/ja.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1556,3 +1556,21 @@ T("Press the sprint button once while moving and Link keeps sprinting until he s
T("30 fps until F5 again", "もう一度F5を押すまで30fps")
T("Frame rate as set again", "フレームレートを設定どおりに戻しました")
T("30 fps for a physics puzzle, until pressed again: F5", "物理パズル用に30fps(もう一度押すまで): F5")
T("Import game packages", "ゲームパッケージをインポート")
T("Extract NUP or NSP files into a folder for setup.", "セットアップ用に NUP または NSP ファイルをフォルダーに展開します。")
T("Choose the keys file for NSP packages", "NSP パッケージのキーファイルを選択")
T("Extracting game packages...", "ゲームパッケージを展開中...")
T("Esc or B cancels the import.", "Esc または B でインポートをキャンセルします。")
T("Package import cancelled.", "パッケージのインポートをキャンセルしました。")
T("Packages extracted. Select Set up game files.", "展開が完了しました。ゲームファイルのセットアップを選択してください。")
T("Could not open the package picker", "パッケージ選択画面を開けませんでした")
T("Could not extract game packages", "ゲームパッケージを展開できませんでした")
T("Package reader is missing", "パッケージリーダーが見つかりません")
T("Add the matching base game NSP", "対応するベースゲームの NSP を追加してください")
T("No Breath of the Wild content was found", "Breath of the Wild のコンテンツが見つかりませんでした")
T("Choose one copy of each game package", "各ゲームパッケージを1つずつ選択してください")
T("Base game", "ベースゲーム")
T("Game update", "ゲームのアップデート")
T("Extract packages", "パッケージを展開")
T("Inspecting game packages...", "ゲームパッケージを確認中...")
T("Add the version %s update NSP", "バージョン %s のアップデート NSP を追加してください")
18 changes: 18 additions & 0 deletions runtime/ui/i18n/ko.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1556,3 +1556,21 @@ T("Press the sprint button once while moving and Link keeps sprinting until he s
T("30 fps until F5 again", "F5를 다시 누를 때까지 30fps")
T("Frame rate as set again", "프레임 속도를 설정대로 되돌렸습니다")
T("30 fps for a physics puzzle, until pressed again: F5", "물리 퍼즐용 30fps, 다시 누를 때까지: F5")
T("Import game packages", "게임 패키지 가져오기")
T("Extract NUP or NSP files into a folder for setup.", "설정에 사용할 NUP 또는 NSP 파일을 폴더에 풉니다.")
T("Choose the keys file for NSP packages", "NSP 패키지의 키 파일 선택")
T("Extracting game packages...", "게임 패키지를 푸는 중...")
T("Esc or B cancels the import.", "Esc 또는 B를 누르면 가져오기가 취소됩니다.")
T("Package import cancelled.", "패키지 가져오기가 취소되었습니다.")
T("Packages extracted. Select Set up game files.", "패키지 풀기가 완료되었습니다. 게임 파일 설정을 선택하세요.")
T("Could not open the package picker", "패키지 선택 창을 열 수 없습니다")
T("Could not extract game packages", "게임 패키지를 풀 수 없습니다")
T("Package reader is missing", "패키지 읽기 도구가 없습니다")
T("Add the matching base game NSP", "일치하는 본편 게임 NSP를 추가하세요")
T("No Breath of the Wild content was found", "Breath of the Wild 콘텐츠를 찾을 수 없습니다")
T("Choose one copy of each game package", "게임 패키지마다 하나의 사본을 선택하세요")
T("Base game", "본편 게임")
T("Game update", "게임 업데이트")
T("Extract packages", "패키지 풀기")
T("Inspecting game packages...", "게임 패키지를 확인하는 중...")
T("Add the version %s update NSP", "버전 %s 업데이트 NSP를 추가하세요")
18 changes: 18 additions & 0 deletions runtime/ui/i18n/nl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1556,3 +1556,21 @@ T("Press the sprint button once while moving and Link keeps sprinting until he s
T("30 fps until F5 again", "30 fps tot je weer op F5 drukt")
T("Frame rate as set again", "Framerate weer zoals ingesteld")
T("30 fps for a physics puzzle, until pressed again: F5", "30 fps voor een natuurkundepuzzel, tot je opnieuw drukt: F5")
T("Import game packages", "Spelpakketten importeren")
T("Extract NUP or NSP files into a folder for setup.", "Pak NUP- of NSP-bestanden uit naar een map voor de installatie.")
T("Choose the keys file for NSP packages", "Sleutelbestand voor NSP-pakketten kiezen")
T("Extracting game packages...", "Spelpakketten uitpakken...")
T("Esc or B cancels the import.", "Esc of B annuleert het importeren.")
T("Package import cancelled.", "Importeren van pakketten geannuleerd.")
T("Packages extracted. Select Set up game files.", "Pakketten uitgepakt. Kies Spelbestanden instellen.")
T("Could not open the package picker", "Pakketkiezer kon niet worden geopend")
T("Could not extract game packages", "Spelpakketten konden niet worden uitgepakt")
T("Package reader is missing", "Pakketlezer ontbreekt")
T("Add the matching base game NSP", "Voeg het bijbehorende NSP-bestand van het basisspel toe")
T("No Breath of the Wild content was found", "Geen Breath of the Wild-inhoud gevonden")
T("Choose one copy of each game package", "Kies één exemplaar van elk spelpakket")
T("Base game", "Basisspel")
T("Game update", "Spelupdate")
T("Extract packages", "Pakketten uitpakken")
T("Inspecting game packages...", "Spelpakketten controleren...")
T("Add the version %s update NSP", "Voeg de NSP-update naar versie %s toe")
Loading