stargazer/README.md

62 lines
1.5 KiB
Markdown
Raw Normal View History

2022-06-22 21:22:45 +02:00
# Stargazer
2022-06-25 23:23:53 +02:00
Library to handle STAR files from the PSX used by its package manager "PackmanJr". Comes with a CLI!
2022-06-22 23:18:53 +02:00
More info: <https://playstationdev.wiki/ps2devwiki/index.php/STAR_Files>
2022-06-22 21:22:45 +02:00
## Usage
2022-06-25 23:23:53 +02:00
### General usage
2022-06-22 23:18:53 +02:00
```txt
2022-06-25 23:23:53 +02:00
NAME:
stargazer - A tool to handle PSX STAR files
USAGE:
stargazer [global options] command [command options] [arguments...]
COMMANDS:
unpack, u Unpacks files from a STAR file
info, i Shows information about a STAR file
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help (default: false)
--quiet, -q Do not print any messages (default: false)
--version, -v print the version (default: false)
2022-06-22 21:22:45 +02:00
```
2022-06-25 23:23:53 +02:00
### Unpack
2022-06-22 23:18:53 +02:00
2022-06-25 23:23:53 +02:00
```txt
NAME:
stargazer unpack - Unpacks files from a STAR file
2022-06-22 21:22:45 +02:00
2022-06-25 23:23:53 +02:00
USAGE:
stargazer unpack [command options] [arguments...]
2022-06-22 23:18:53 +02:00
2022-06-25 23:23:53 +02:00
OPTIONS:
--input value, -i value Path to STAR file
--output value, -o value Path to output directory. Defaults to '<input file without .star>_extracted'
```
If no output directory is given, the file is extracted to the file name minus the extension plus "`_extracted`" (
e.g. `xPackmanJr_0.105.star` -> `xPackmanJr_0.105_extracted`). Same goes for packing (it will append `_packed.star`).
2022-06-22 23:18:53 +02:00
2022-06-25 23:23:53 +02:00
### Info
2022-06-22 23:18:53 +02:00
2022-06-25 23:23:53 +02:00
```txt
NAME:
stargazer info - Shows information about a STAR file
USAGE:
stargazer info [command options] [arguments...]
2022-06-22 23:18:53 +02:00
2022-06-25 23:23:53 +02:00
OPTIONS:
--input value, -i value Path to STAR file
```
2022-06-22 23:18:53 +02:00
2022-06-25 23:23:53 +02:00
## Credits
2022-06-22 23:18:53 +02:00
2022-06-25 23:23:53 +02:00
Thanks to [@martravi](https://github.com/martravi) for helping with reverse-engineering!