Skip to content

Commit 205a0b8

Browse files
committed
game: add support for 2.2.0
1 parent 12de62a commit 205a0b8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "xc3-file-loader"
3-
version = "1.3.1"
3+
version = "1.4.0"
44
authors = ["RoccoDev <hey@rocco.dev>"]
55
edition = "2021"
66
license = "gpl-3.0"

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ mod edit_version {
2323
static VERSION_TEMPLATE: &[u8] = b"%s %sF\0";
2424

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

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

0 commit comments

Comments
 (0)