Coder Social home page Coder Social logo

lipx's People

Contributors

hornc avatar kylon avatar marcelothebuilder avatar rfinnie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

lipx's Issues

Does not work in this case

Hello,
I would like to use your tool to patch a rom and it won't work.
Try this:
search and find this SNES rom: Chrono Trigger (US).smc
download the french translation patch from this site:
https://traf.romhack.org/?p=patchs&pid=1071&aff=coms

Try to patch the USA rom:
$ python ./lipx.py -a "SNES rom: Chrono Trigger (US).smc" "Chrono Trigger (Fr) v1.03.ips"
or
$ python3 ./lipx.py -a "SNES rom: Chrono Trigger (US).smc" "Chrono Trigger (Fr) v1.03.ips"
it won't work.

Thank you for your help.

Config: Ubuntu 18.04

Improved usage() for system-wide installations.

Replacing static 'lipx.py' with dynamic will display help text that is consistent with the actual installed file (for example if installed as /usr/bin/lipx).

def usage():
    this = os.path.basename(sys.argv[0])
    print('\nLipx v' + VERSION + ' - Linux IPS tool\n\n' +
           'Usage:\n\n' +
           '    == Apply patch\n' +
           '    ' + this + ' -a originalFile patchFile\n\n' +
           '    == Create a copy and apply the patch - original is untouched\n' +
           '    ' + this + ' -ab originalFile patchFile [outputFile]\n\n' +
           '    == Create IPS patch\n' +
           '    ' + this + ' -c originalFile modifiedFile [outputFile]\n\n' +
           'Arguments:\n' +
           '    [] optional argument\n')

    sys.exit(1)

truncation expansion

i noticed lipx currently doesnt create patches that truncate the patched file.
it appears many ips patching tools support a so-called "truncation/expansion extension", but i haven't found a specification so far.

Add license

Please add a license to this project so that users and developers are legally able to copy and contribute to it.

I recommend the COIL or the ISC license.

"python" shebang

The current shebang at the top of the script references python but this program requires Python 3. Most systems refer to Python 3.x as python3.

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.