You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Move hexpatch to Rust
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
|
||||
pub use base;
|
||||
use cpio::*;
|
||||
use patch::*;
|
||||
use payload::*;
|
||||
|
||||
mod cpio;
|
||||
mod patch;
|
||||
mod payload;
|
||||
// Suppress warnings in generated code
|
||||
#[allow(warnings)]
|
||||
@@ -31,5 +33,6 @@ pub mod ffi {
|
||||
) -> bool;
|
||||
|
||||
unsafe fn cpio_commands(argc: i32, argv: *const *const c_char) -> bool;
|
||||
fn hexpatch(file: &[u8], from: &[u8], to: &[u8]) -> bool;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user