Giter Site home page Giter Site logo

hippie68 / sfo Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 5.0 122 KB

Fast C program that reads a file to print or modify its SFO parameters. Can be used for automation or to build param.sfo files from scratch. Also available as .exe file for the Windows command line.

Shell 14.98% C 85.02%
ps4 sfo commandline param pkg fpkg windows

sfo's People

Contributors

hippie68 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sfo's Issues

Please update to convert to utf8 string output.

Please update your code to show proper utf8 encoded strings, for example:

BATMAN™: ARKHAM KNIGHT

This shows as - BATMANâ„¢: ARKHAM KNIGHT

Bytes that show â„¢ have not been converted to utf8 stings so do not show up as ™, there's many other games that have these type of characters where the bytes read and printed are not being decoded to the utf8 format.

Thanks.

Maybe this can help:
https://dev.to/rdentato/utf-8-strings-in-c-2-3-3kp1

Support for PS4 'SCECDF'

Hi. It's great to see some recent developments on basic tools like SFO readers, and especially open source tools that run on Linux. Appreciate your work.

Wanted to ask if it'd be possible to add support for the param.sfo files that are included directly on PS4 ISO. Note that these are different from the param.sfo files that included within app.pkg. These files are located under /bd/param.sfo on the ISO, and begin with SCECDF instead of PSF. The contain similar info, but it's not identical; looking at hexdump output, it appears to be a subset of the main param.sfo data.

For example, here's the main/app.pkg param.sfo for Tetris Effect:
https://boxdog.legroom.net/public/te-psf-param.sfo

and here's an example of the bd/ISO param.sfo:
https://boxdog.legroom.net/public/te-scecdf-param.sfo

I've been unable to find any other tool capable of reading these, but pretty much all other Linux SFO readers I've found so were last updated in 2015 (or older), so figured you'd be my best shot at this. I'm mainly interested because this file can be extracted instantly from ISOs, while the 'main' param.sfo requires first extracting app.pkg and then extracting from there, which can take quite a while on large ISOs.

Extract png from pkg

Is it possible to add a feature to extract the game PNG from a PKG file?

Game PNG offset address shown in all pgk files I have tested:

0x2d30 - 4 bytes starting at this offset shows png offset address location
0x2d34 - 4 bytes shows png offset size (add address given by starting offset to this give png end offset).

Also I don't know if you know but, offsets in all pkg files I tested:
0x2bf0 - 4 bytes shows SFO offset address
0x2bf4 - 4 bytes shows size of SFO file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.