Giter Club home page Giter Club logo

sx's Introduction

sx

(S)ection (X)tractor aims to extract "sections" from a directory of files while respecting the original file structure.

A "section" is defined as anything which resembles the following structure:-

*---------------------------------------------------------------------------------------*
| Offset 	| Size	| Value								|
*---------------------------------------------------------------------------------------*
| 0x0		|  4	| FOURCC Identifier (ie. 'PVRT' for PowerVR textures)		|
| 0x4		|  4	| Size of section in bytes					|
*---------------------------------------------------------------------------------------*

By default, sx will find and extract PowerVR textures found in any of the input files (denoted by the PVRT FOURCC).. however, support for other sections can easily be added by adjusting the arrays at the top of sx.cpp.

Files are written to the input/current directory, with their FOURCC identifiers used as the file extension, or optionally to another directory with the third argument.

Configuration

Additionally, sections can be added to sx by making use of sx.ini (placed in the same directory as the executable).

The below examples disables the built-in PVRT section and enables it through the configuration, for demonstration purposes. Section names are limited to 4 bytes/characters and must be ASCII (for now).

[general]
version=1
disable_pvrt=true
exclude_extensions=.XYZ,.ZZZ

[sections]
SectionName0=PVRT
SectionSize0=0

Example usage:-

* sx.exe "/path/to/files"
* sx.exe "/path/to/files" "/path/to/output"

sx's People

Contributors

lemonhaze420 avatar

Watchers

 avatar  avatar

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.