Implement Wiimm's WIT Tools Into the Script Language #8

Open
opened 2024-08-27 13:34:34 +02:00 by faraphel · 1 comment
Owner

Wiimm's WIT Tools Implementation in the Script Language

The Wiimm's WIT tools is a sets of tools that allow for manipulation of games images files such as iso, ciso, wbfs, gcz, etc...
This tool is essential for our project since we need to patch the original games files, which is in one of theses format. To do so, we need to extract it, this extracted version will then be mounted or directly available in the virtual file system so that the modder than modify theses files.

At the end of the patching process, a directory with the extracted modified game will also need to be repacked into the modded game image with the same tool.

In the same way as for the SZS Tools (#7), this will be included as a library instead of an executable to use with system calls to improve the performances. The original code should NOT be modified but instead wrapper to be forward compatible.

# Wiimm's WIT Tools Implementation in the Script Language The Wiimm's WIT tools is a sets of tools that allow for manipulation of games images files such as `iso`, `ciso`, `wbfs`, `gcz`, etc... This tool is essential for our project since we need to patch the original games files, which is in one of theses format. To do so, we need to extract it, this extracted version will then be mounted or directly available in the virtual file system so that the modder than modify theses files. At the end of the patching process, a directory with the extracted modified game will also need to be repacked into the modded game image with the same tool. In the same way as for the SZS Tools (#7), this will be included as a library instead of an executable to use with system calls to improve the performances. The original code should NOT be modified but instead wrapper to be forward compatible.
faraphel added the
enhancement
label 2024-08-27 13:34:34 +02:00
faraphel self-assigned this 2024-08-27 13:34:35 +02:00
faraphel added this to the Atlas-Launcher project 2024-08-27 13:34:35 +02:00
faraphel added a new dependency 2024-08-27 13:48:43 +02:00
Author
Owner

CISO

Source : https://github.com/Wiimm/wiimms-iso-tools/blob/master/project/src/lib-ciso.h

enumError SetupReadCISO	( SUPERFILE * sf );
enumError ReadCISO	( SUPERFILE * sf, off_t off, void * buf, size_t size );
off_t     DataBlockCISO	( SUPERFILE * sf, off_t off, size_t hint_align, off_t * block_size );

// CISO writing support
enumError SetupWriteCISO ( SUPERFILE * sf );
enumError TermWriteCISO	 ( SUPERFILE * sf );
enumError WriteCISO	 ( SUPERFILE * sf, off_t off, const void * buf, size_t size );
enumError WriteSparseCISO( SUPERFILE * sf, off_t off, const void * buf, size_t size );
enumError WriteZeroCISO	 ( SUPERFILE * sf, off_t off, size_t size );

GCZ

Source : https://github.com/Wiimm/wiimms-iso-tools/blob/master/project/src/lib-gcz.h

WDF

Source : https://github.com/Wiimm/wiimms-iso-tools/blob/master/project/src/lib-wdf.h

WIA

Source : https://github.com/Wiimm/wiimms-iso-tools/blob/master/project/src/lib-wia.h

WBFS

Source : https://github.com/Wiimm/wiimms-iso-tools/blob/master/project/src/wbfs-interface.h

ISO

Source : https://github.com/Wiimm/wiimms-iso-tools/blob/master/project/src/iso-interface.h

## CISO > Source : https://github.com/Wiimm/wiimms-iso-tools/blob/master/project/src/lib-ciso.h ```c enumError SetupReadCISO ( SUPERFILE * sf ); enumError ReadCISO ( SUPERFILE * sf, off_t off, void * buf, size_t size ); off_t DataBlockCISO ( SUPERFILE * sf, off_t off, size_t hint_align, off_t * block_size ); // CISO writing support enumError SetupWriteCISO ( SUPERFILE * sf ); enumError TermWriteCISO ( SUPERFILE * sf ); enumError WriteCISO ( SUPERFILE * sf, off_t off, const void * buf, size_t size ); enumError WriteSparseCISO( SUPERFILE * sf, off_t off, const void * buf, size_t size ); enumError WriteZeroCISO ( SUPERFILE * sf, off_t off, size_t size ); ``` ## GCZ > Source : https://github.com/Wiimm/wiimms-iso-tools/blob/master/project/src/lib-gcz.h ## WDF > Source : https://github.com/Wiimm/wiimms-iso-tools/blob/master/project/src/lib-wdf.h ## WIA > Source : https://github.com/Wiimm/wiimms-iso-tools/blob/master/project/src/lib-wia.h ## WBFS > Source : https://github.com/Wiimm/wiimms-iso-tools/blob/master/project/src/wbfs-interface.h ## ISO > Source : https://github.com/Wiimm/wiimms-iso-tools/blob/master/project/src/iso-interface.h
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: Atlas/Atlas-Launcher#8
No description provided.