Skip to content

Commit

Permalink
game: add support for 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
roccodev committed Jan 19, 2024
1 parent 12de62a commit 205a0b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "xc3-file-loader"
version = "1.3.1"
version = "1.4.0"
authors = ["RoccoDev <[email protected]>"]
edition = "2021"
license = "gpl-3.0"
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ mod edit_version {
static VERSION_TEMPLATE: &[u8] = b"%s %sF\0";

// Look for usages of nn::oe::GetDisplayVersion
#[skyline::hook(offset = 0x00841200, inline)]
#[skyline::hook(offset = 0x00841d20, inline)]
pub unsafe fn edit_version(ctx: &mut InlineCtx) {
*ctx.registers[1].x.as_mut() = VERSION_TEMPLATE.as_ptr() as u64;
}
}

// ml::DevFileArchiver::getFileInfo
#[hook(offset = 0x01256c28)]
#[hook(offset = 0x01257798)]
unsafe fn block_file_load(p1: u64, p2: u32, name: *const u8, p4: u64) -> u32 {
let file_name = CStr::from_ptr(name as *const _);
if let Ok(file_name) = file_name.to_str() {
Expand Down

0 comments on commit 205a0b8

Please sign in to comment.