Comments (3)
My mistake, this seems to be a corner case, control.nacp has all the info about title name.
Is there anything better than this:
LANG=Spanish
nstool control.nacp 2>/dev/null | grep $LANG -A1 | grep Name | head -n 1 | awk '{$1=""; gsub(/^[ \t]+/, "", $0); gsub(/[ \t]+$/, "", $0); print $0}'
Can we expand to query like
LANG=Spanish
nstool --type nacp control.nacp --query ".Title.$LANG"
or add yaml or json output to parse with yq
or jq
from nstool.
Currently there is no query function or alternative formatting as JSON or YAML.
It is my intention to add alternative formatting as JSON for file types such as NACP. But I'm busy with other projects currently. So I'm not sure when that feature will be available.
from nstool.
@jakcron Sure. Feel free to reopen this and ping if you consider to add that.
Indeed there're several tricks to get that and to avoid complete extract of files of Gb, so I implement that directly reusing existing code on Ryujinx/Ryujinx#2131 as this is for a Ryujinx feature
from nstool.
Related Issues (20)
- [Bug] Extracting single file - access denied HOT 5
- [Feature] Add support for Personalised eTickets
- [Questions] how do I slipstream an update on the original archive HOT 1
- Extraction failed - NCA Partition 1 not readable. (Indirect storage not ascending ordered.) HOT 2
- Is it possible to extract all icons from an asset? HOT 3
- Extracting a patch file with a ticket HOT 11
- Remove ARFLAGS "-o" to compile on FreeBSD (and possibly others) HOT 6
- Data layer block(s) failed hash validation when trying to extract HOT 1
- YOUR PROGRAM SUCKS HOT 2
- Problem loading key file using "-k" HOT 8
- "Root sRomfsDirEntry corrupted" error when extracting patch NCA HOT 1
- How to get Title name and Title ID?
- [BUG] NSTool incorrectly marks SaveDataOwnerId as FAIL HOT 2
- [FEATURE] Enable fine-grain control over CLI output, for improved usability in scripting. HOT 1
- [FEATURE] When processing PFS0 archives, intelligently detect when it is NSP
- [BUG] NSTool reports wrong or unknown NCA Type HOT 5
- [make] No instructions to clone git submodules prior to using make HOT 4
- [nstool] Release 1.7.0 fails to run on ubuntu 20.04 HOT 1
- NCA patch failed with some errors (Indirect storage not ascending ordered.) HOT 1
- nstool failed to patch update on base nca (Indirect storage not ascending ordered) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nstool.