Skip to content

Commit

Permalink
Fix block rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterparty committed Feb 6, 2024
1 parent 2127a4b commit 2ecb0a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/add_modify_obj_patches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,7 @@ pub fn patch_add_platform<'r>(
(
vec![
(0x27D0663B, b"CMDL"),
(0x964E98AC, b"DCLN"),
(0x19AD934F, b"TXTR"),
(0xFF6F41A6, b"TXTR"),
],
Expand All @@ -1442,6 +1443,7 @@ pub fn patch_add_platform<'r>(
(
vec![
(0x27D0663B, b"CMDL"),
(0x910FF59C, b"DCLN"),
(0x19AD934F, b"TXTR"),
(0xFF6F41A6, b"TXTR"),
],
Expand All @@ -1453,6 +1455,7 @@ pub fn patch_add_platform<'r>(
(
vec![
(0x27D0663B, b"CMDL"),
(0xA87758DC, b"DCLN"),
(0x19AD934F, b"TXTR"),
(0xFF6F41A6, b"TXTR"),
],
Expand Down
10 changes: 10 additions & 0 deletions src/custom_assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,16 @@ fn extern_assets_compile_time<'r>() -> Vec<Resource<'r>>
extern_asset!(SCAN_VISOR_METAL_TRIM_TXTR , "scan_visor_metal_trim.TXTR" ),
];

/* If you ever needed more than just TXTR you would chain like so:
extern_assets_txtr.iter().map(|&(res, ref fourcc, bytes)| {
build_resource(res, ResourceKind::Unknown(Reader::new(bytes), fourcc.into()))
}).chain(extern_assets_dcln.iter().map(|&(res, ref fourcc, bytes)| {
build_resource(res, ResourceKind::Unknown(Reader::new(bytes), fourcc.into()))
})).collect()
*/

extern_assets.iter().map(|&(res, ref fourcc, bytes)| {
build_resource(res, ResourceKind::Unknown(Reader::new(bytes), fourcc.into()))
}).collect()
Expand Down

0 comments on commit 2ecb0a9

Please sign in to comment.