Skip to content

Commit f915e81

Browse files
committed
Offsets for 9.0.1, update README.md, version bump
1 parent 018c577 commit f915e81

3 files changed

Lines changed: 29 additions & 26 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "arcropolis"
3-
version = "0.9.3-beta4"
3+
version = "0.9.3"
44
authors = ["Raytwo <raytwost@gmail.com>, jam1garner <jam1.mcleod@hotmail.com>"]
55
edition = "2018"
66

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ You can also opt-in for beta builds for experimental features through your confi
5656

5757
### Logging
5858

59-
As of version 0.9.3-beta4 (only for beta users at time of writing), ARCropolis allows you to change the amount of logging you would like to see.
59+
As of version 0.9.3, ARCropolis allows you to change the amount of logging you would like to see.
6060

6161
To do so, change the ``logger_level`` field in your configuration to one of the followings:
6262

src/offsets.rs

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
use skyline::hooks::{getRegionAddress, Region};
22

3-
// default 8.0.0 offsets
4-
pub static mut LOOKUP_STREAM_HASH_OFFSET: usize = 0x324f7a0;
5-
// default 9.0.0 offsets
6-
pub static mut IDK_OFFSET: usize = 0x325dcc0;
7-
pub static mut ADD_IDX_TO_TABLE1_AND_TABLE2_OFFSET: usize = 0x3258110;
8-
pub static mut PARSE_EFF_OFFSET: usize = 0x3379804;
9-
pub static mut PARSE_EFF_NUTEXB_OFFSET: usize = 0x3379ce0;
10-
pub static mut PARSE_PARAM_OFFSET: usize = 0x3539104;
11-
pub static mut PARSE_MODEL_XMB_OFFSET:usize = 0x33fa718;
12-
pub static mut PARSE_ARC_FILE_OFFSET:usize = 0x358892c;
13-
pub static mut PARSE_FONT_FILE_OFFSET:usize = 0x3576918;
14-
pub static mut PARSE_NUMSHB_FILE_OFFSET:usize = 0x33e1740;
15-
pub static mut PARSE_NUMATB_NUTEXB_OFFSET:usize = 0x3407d74;
16-
pub static mut PARSE_NUMSHEXB_FILE_OFFSET:usize = 0x33e3634;
17-
pub static mut PARSE_NUMATB_FILE_OFFSET:usize = 0x340730c;
18-
pub static mut PARSE_NUMDLB_FILE_OFFSET:usize = 0x33dc098;
19-
pub static mut PARSE_LOG_XMB_OFFSET:usize = 0x33fa7e4;
20-
pub static mut PARSE_MODEL_XMB_2_OFFSET:usize = 0x3406934;
21-
pub static mut TITLE_SCREEN_VERSION_OFFSET:usize = 0x34b8327;
22-
pub static mut PARSE_NUS3BANK_FILE_OFFSET:usize = 0x35522e4;
3+
// default 9.0.1 offsets
4+
pub static mut LOOKUP_STREAM_HASH_OFFSET: usize = 0x335a350;
5+
pub static mut IDK_OFFSET: usize = 0x335f150;
6+
pub static mut ADD_IDX_TO_TABLE1_AND_TABLE2_OFFSET: usize = 0x33595a0;
7+
pub static mut PARSE_EFF_OFFSET: usize = 0x3379e14;
8+
pub static mut PARSE_EFF_NUTEXB_OFFSET: usize = 0x337a2f0;
9+
pub static mut PARSE_PARAM_OFFSET: usize = 0x3539714;
10+
pub static mut PARSE_MODEL_XMB_OFFSET:usize = 0x33fad28;
11+
pub static mut PARSE_ARC_FILE_OFFSET:usize = 0x3588f3c;
12+
pub static mut PARSE_FONT_FILE_OFFSET:usize = 0x3576f28;
13+
pub static mut PARSE_NUMSHB_FILE_OFFSET:usize = 0x33e1d50;
14+
pub static mut PARSE_NUMATB_NUTEXB_OFFSET:usize = 0x3408384;
15+
pub static mut PARSE_NUMSHEXB_FILE_OFFSET:usize = 0x33e3c44;
16+
pub static mut PARSE_NUMATB_FILE_OFFSET:usize = 0x340791c;
17+
pub static mut PARSE_NUMDLB_FILE_OFFSET:usize = 0x33dc6a8;
18+
pub static mut PARSE_LOG_XMB_OFFSET:usize = 0x33fadf4;
19+
pub static mut PARSE_MODEL_XMB_2_OFFSET:usize = 0x3406f44;
20+
pub static mut TITLE_SCREEN_VERSION_OFFSET:usize = 0x35ba960;
21+
pub static mut PARSE_NUS3BANK_FILE_OFFSET:usize = 0x35528f4;
2322

2423
static IDK_SEARCH_CODE: &[u8] = &[
2524
0xf8, 0x5f, 0xbc, 0xa9, 0xf6, 0x57, 0x01, 0xa9, 0xf4, 0x4f, 0x02, 0xa9, 0xfd, 0x7b, 0x03, 0xa9,
@@ -131,10 +130,14 @@ macro_rules! find_offsets {
131130
}
132131

133132
pub fn search_offsets() {
133+
unsafe {
134+
smash::resource::LOADED_TABLES_OFFSET = 0x50567a0;
135+
smash::resource::RES_SERVICE_OFFSET = 0x50567a8;
136+
}
134137
find_offsets!(
135-
(IDK_OFFSET, IDK_SEARCH_CODE),
136-
(ADD_IDX_TO_TABLE1_AND_TABLE2_OFFSET, ADD_IDX_TO_TABLE1_AND_TABLE2_SEARCH_CODE),
137-
(LOOKUP_STREAM_HASH_OFFSET, LOOKUP_STREAM_HASH_SEARCH_CODE),
138+
//(IDK_OFFSET, IDK_SEARCH_CODE),
139+
//(ADD_IDX_TO_TABLE1_AND_TABLE2_OFFSET, ADD_IDX_TO_TABLE1_AND_TABLE2_SEARCH_CODE),
140+
//(LOOKUP_STREAM_HASH_OFFSET, LOOKUP_STREAM_HASH_SEARCH_CODE),
138141
// (PARSE_EFF_NUTEXB_OFFSET, PARSE_EFF_NUTEXB_SEARCH_CODE),
139142
// (PARSE_EFF_OFFSET, PARSE_EFF_SEARCH_CODE),
140143
// (PARSE_PARAM_OFFSET, PARSE_PARAM_SEARCH_CODE),
@@ -147,7 +150,7 @@ pub fn search_offsets() {
147150
// (PARSE_NUMDLB_FILE_OFFSET, PARSE_NUMDLB_FILE_SEARCH_CODE),
148151
// (PARSE_LOG_XMB_OFFSET, PARSE_LOG_XMB_SEARCH_CODE),
149152
// (PARSE_MODEL_XMB_2_OFFSET, PARSE_MODEL_XMB_2_SEARCH_CODE),
150-
(TITLE_SCREEN_VERSION_OFFSET, TITLE_SCREEN_VERSION_SEARCH_CODE),
153+
//(TITLE_SCREEN_VERSION_OFFSET, TITLE_SCREEN_VERSION_SEARCH_CODE),
151154
);
152155
}
153156

0 commit comments

Comments
 (0)