-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make rzxinfo.py an official SkoolKit command
- Loading branch information
Showing
11 changed files
with
543 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# Copyright 2024 Richard Dymond (rjdymond@gmail.com) | ||
# | ||
# This file is part of SkoolKit. | ||
# | ||
# SkoolKit is free software: you can redistribute it and/or modify it under the | ||
# terms of the GNU General Public License as published by the Free Software | ||
# Foundation, either version 3 of the License, or (at your option) any later | ||
# version. | ||
# | ||
# SkoolKit is distributed in the hope that it will be useful, but WITHOUT ANY | ||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR | ||
# A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License along with | ||
# SkoolKit. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
import sys | ||
|
||
from skoolkit import rzxinfo, error, SkoolKitError | ||
|
||
try: | ||
rzxinfo.main(sys.argv[1:]) | ||
except SkoolKitError as e: | ||
error(e.args[0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
:orphan: | ||
|
||
========== | ||
rzxinfo.py | ||
========== | ||
|
||
SYNOPSIS | ||
======== | ||
``rzxinfo.py`` [options] FILE | ||
|
||
DESCRIPTION | ||
=========== | ||
``rzxinfo.py`` shows the blocks in or extracts the snapshots from an RZX file. | ||
|
||
OPTIONS | ||
======= | ||
--extract | ||
Extract snapshots. | ||
|
||
--frames | ||
Show the contents of every frame. | ||
|
||
-V, --version | ||
Show the SkoolKit version number and exit. | ||
|
||
EXAMPLES | ||
======== | ||
1. Show information on the blocks in ``game.rzx``: | ||
|
||
| | ||
| ``rzxinfo.py game.rzx`` | ||
2. Extract all the snapshots from ``game.rzx``: | ||
|
||
| | ||
| ``rzxinfo.py --extract game.rzx`` |
Oops, something went wrong.