Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add title and title save image codec #6

Open
mborgerson opened this issue Jan 4, 2020 · 1 comment
Open

Add title and title save image codec #6

mborgerson opened this issue Jan 4, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@mborgerson
Copy link
Owner

mborgerson commented Jan 4, 2020

Distinct from #4, title images and title save images are stored in the XBE in $$XTIMAGE and $$XSIMAGE sections respectively as "XPR0" format images--which are simple 256x256 128x128/64x64 DXT1 encoded images with a header. This format is documented here. For convenience, it would be helpful to have a way to be able to encode/decode these images to conventional formats (ideally without bringing in any graphics library dependencies).

Update: I have this 1/2 implemented locally.

@mborgerson mborgerson added the enhancement New feature or request label Jan 4, 2020
@mborgerson mborgerson changed the title Add title[save] image codec Add title and title save image codec Jan 4, 2020
@mborgerson
Copy link
Owner Author

Extracting title and title save XPR images as plain .bmps is now supported as of d28d534. See README for CLI usage info.

Since .xbx image files (used for game saves) are also in XPR format, a convenience option was added to convert .xbx image files to .bmp as well.

Converting images to XPR and injecting into XBE file will come later, in coordination with #1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant