Giter Site home page Giter Site logo

althonos / flips.rs Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 2.0 334 KB

Rust bindings to Flips, the Floating IPS patcher.

Home Page: https://crates.io/crates/flips

License: GNU General Public License v3.0

Rust 95.44% Shell 4.09% C 0.47%
ips bps patcher rom rust-ffi rust-bindings

flips.rs's People

Contributors

althonos avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flips.rs's Issues

Not sure how to save patch to fs

First off, I'm very new to Rust, so I'm sure I could just be doing things wrong. Also this is really cool that this package exists.

I'm having trouble figuring out how to output a bps patch to disk. This is what I have so far:

let dest = std::fs::read("final.sfc").unwrap();
let src = std::fs::read("input.sfc").unwrap();
let patch = flips::BpsLinearBuilder::new()
    .source(src)
    .target(dest)
    .build()
    .expect("could not create patch");

//println!("{:?}", patch);

// this does not work :(
//std::fs::write("out.bps", patch).unwrap();

any help would be super appreciated.

Runtime error when using flips

Hello!

With the latest Rust 1.68, whenever I use Flips, it crashes at runtime. I simply have to add this line in my code:

use flips;

And the app crashes first thing.

The crash point is a bit cryptic though:

image

The callstack seems to point out to a GDK issue:

image

But my app works well until I simply add use flips; to my code (and just this line).

I'm fairly new to Rust, so it's I still don't understand everything. That said, this package not having been updated for 3 years is a good candidate as to why it doesn't work with the latest Rust compiler/runtime...

What do you think?

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.