Skip to content

Commit

Permalink
Added System.extractPbp and PBP support to System.extractSfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinnegatamante committed Oct 30, 2022
1 parent 4ab3b2d commit 6bebb95
Show file tree
Hide file tree
Showing 2 changed files with 431 additions and 235 deletions.
18 changes: 18 additions & 0 deletions doc/luaSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -844,9 +844,27 @@ class System{
* @param filename - The filename to extract info from.
*
* @return A table with a proper set of info (Look at the sample above).
*
* @note This function can be used also to extract info from PARAM.SFO bundled inside PBP files.
*/
table extractSfo(string filename);

/**
* Extract a PBP file (synchronous).
* \ingroup System
*
* @par Usage example:
* @code
* System.extractPbp("app0:/files.zip", "ux0:/data/app_files")
* @endcode
*
* @param filename - The filename to extract.
* @param dirname - The path where to extract files.
*
* @note If <b>dirname</b> doesn't exist, it will be automatically created.
*/
void extractPbp(string filename, string dirname);

/**
* Extract a ZIP file (synchronous).
* \ingroup System
Expand Down

0 comments on commit 6bebb95

Please sign in to comment.