Skip to content

Commit

Permalink
Replaced old Archives unzipper with minizip.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinnegatamante committed Apr 1, 2021
1 parent 940cc60 commit fc788bd
Show file tree
Hide file tree
Showing 12 changed files with 5,332 additions and 1,508 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ $(TARGET).elf: $(OBJS)
$(CXX) $(CXXFLAGS) $^ $(LIBS) -o $@

clean:
@rm -rf $(TARGET).velf $(TARGET).elf $(TARGET).sysvelf $(TARGET).syself $(OBJS)
@rm -rf $(TARGET).velf $(TARGET).elf $(TARGET).sysvelf $(OBJS)
28 changes: 8 additions & 20 deletions doc/luaSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,33 +821,25 @@ class System{
*
* @param filename - The filename to extract.
* @param dirname - The path where to extract files.
* @param password - The password of the archive <b>(optional)</b>.
*
* @return 1 if extraction completed successfully, 0 otherwise.
*
* @note If <b>dirname</b> doesn't exist, it will be automatically created.
*/
int extractZip(string filename, string dirname, string password);
void extractZip(string filename, string dirname);

/**
* Extract a specific file from a ZIP file (synchronous).
* \ingroup System
*
* @par Usage example:
* @code
* System.extractFromZip("app0:/files.zip", "image.jpg" "ux0:/data/app_files")
* System.extractFromZip("app0:/files.zip", "image.jpg" "ux0:/data/app_files/my_image.jpg")
* @endcode
*
* @param filename - The filename of the ZIP archive.
* @param file - The file to extract.
* @param dirname - The path where to extract file.
* @param password - The password of the archive <b>(optional)</b>.
*
* @return true if file extraced, false otherwise.
*
* @note If <b>dirname</b> doesn't exist, it will be automatically created.
* @param destname - The filename where to extract file.
*/
bool extractFromZip(string filename, string file, string dirname, string password);
void extractFromZip(string filename, string file, string destname);

/**
* Extract a ZIP file (asynchronous).
Expand All @@ -860,29 +852,25 @@ class System{
*
* @param filename - The filename to extract.
* @param dirname - The path where to extract files.
* @param password - The password of the archive <b>(optional)</b>.
*
* @note If <b>dirname</b> doesn't exist, it will be automatically created.
*/
void extractZipAsync(string filename, string dirname, string password);
void extractZipAsync(string filename, string dirname);

/**
* Extract a specific file from a ZIP file (asynchronous).
* \ingroup System
*
* @par Usage example:
* @code
* System.extractFromZipAsync("app0:/files.zip", "image.jpg" "ux0:/data/app_files")
* System.extractFromZipAsync("app0:/files.zip", "image.jpg" "ux0:/data/app_files/my_image.jpg")
* @endcode
*
* @param filename - The filename of the ZIP archive.
* @param file - The file to extract.
* @param dirname - The path where to extract file.
* @param password - The password of the archive <b>(optional)</b>.
*
* @note If <b>dirname</b> doesn't exist, it will be automatically created.
* @param destname - The filename where to extract file.
*/
void extractFromZipAsync(string filename, string file, string dirname, string password);
void extractFromZipAsync(string filename, string file, string destname);

/**
* Get current state of an asynchronous task.
Expand Down

0 comments on commit fc788bd

Please sign in to comment.