Skip to content

Commit

Permalink
ACTUALLY UPDATE TO PUBLIC RELEASE
Browse files Browse the repository at this point in the history
god DAMMIT 10 BYTES OF DIFFERENCE BETWEEN BETA AND STABLE

WHY
  • Loading branch information
Centri3 committed Dec 16, 2022
1 parent b4d0d60 commit 95116ca
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ use windows::Win32::{
};

const VERSION_DATA: [u8; 64usize] = [
0x48u8, 0x8bu8, 0x54u8, 0x24u8, 0x60u8, 0x48u8, 0x83u8, 0xfau8, 0x08u8, 0x72u8, 0x37u8, 0x48u8,
0x8du8, 0x14u8, 0x55u8, 0x02u8, 0x00u8, 0x00u8, 0x00u8, 0x48u8, 0x8bu8, 0x4cu8, 0x24u8, 0x48u8,
0x48u8, 0x8bu8, 0xc1u8, 0x48u8, 0x81u8, 0xfau8, 0x00u8, 0x10u8, 0x00u8, 0x00u8, 0x72u8, 0x19u8,
0x48u8, 0x83u8, 0xc2u8, 0x27u8, 0x48u8, 0x8bu8, 0x49u8, 0xf8u8, 0x48u8, 0x2bu8, 0xc1u8, 0x48u8,
0x83u8, 0xc0u8, 0xf8u8, 0x48u8, 0x83u8, 0xf8u8, 0x1fu8, 0x0fu8, 0x87u8, 0x24u8, 0x03u8, 0x00u8,
0x00u8, 0xe8u8, 0x62u8, 0x74u8,
0x4cu8, 0x89u8, 0x6fu8, 0x10u8, 0x48u8, 0xc7u8, 0x47u8, 0x18u8, 0x07u8, 0x00u8, 0x00u8, 0x00u8,
0x66u8, 0x44u8, 0x89u8, 0x2fu8, 0x48u8, 0x8bu8, 0x54u8, 0x24u8, 0x60u8, 0x48u8, 0x83u8, 0xfau8,
0x08u8, 0x72u8, 0x37u8, 0x48u8, 0x8du8, 0x14u8, 0x55u8, 0x02u8, 0x00u8, 0x00u8, 0x00u8, 0x48u8,
0x8bu8, 0x4cu8, 0x24u8, 0x48u8, 0x48u8, 0x8bu8, 0xc1u8, 0x48u8, 0x81u8, 0xfau8, 0x00u8, 0x10u8,
0x00u8, 0x00u8, 0x72u8, 0x19u8, 0x48u8, 0x83u8, 0xc2u8, 0x27u8, 0x48u8, 0x8bu8, 0x49u8, 0xf8u8,
0x48u8, 0x2bu8, 0xc1u8, 0x48u8,
];

// I have to use the same number of bytes for each opcode because of spaghetti. I hate this
pub const NO_SEARCH_LOCKING_DATA: [(usize, [u8; 18usize], [u8; 18usize]); 3usize] = [
(
0x3e7c76usize,
0x3e7c86usize,
[
0x0fu8, 0xb6u8, 0x8bu8, 0x41u8, 0x66u8, 0x02u8, 0x00u8, 0x8bu8, 0xc7u8, 0x83u8, 0xf9u8,
0x01u8, 0x0fu8, 0x1fu8, 0x00u8, 0xbau8, 0x04u8, 0x00u8,
Expand All @@ -31,7 +31,7 @@ pub const NO_SEARCH_LOCKING_DATA: [(usize, [u8; 18usize], [u8; 18usize]); 3usize
],
),
(
0x3eb29ausize,
0x3eb2aausize,
[
0x0fu8, 0xb6u8, 0xfau8, 0x48u8, 0x8bu8, 0xd9u8, 0x80u8, 0xb9u8, 0x41u8, 0x66u8, 0x02u8,
0x00u8, 0x01u8, 0x0fu8, 0x1fu8, 0x44u8, 0x00u8, 0x00u8,
Expand All @@ -42,7 +42,7 @@ pub const NO_SEARCH_LOCKING_DATA: [(usize, [u8; 18usize], [u8; 18usize]); 3usize
],
),
(
0x3eb4c2usize,
0x3eb4d2usize,
[
0x80u8, 0xb9u8, 0x41u8, 0x66u8, 0x02u8, 0x00u8, 0x01u8, 0x0fu8, 0x1fu8, 0x44u8, 0x00u8,
0x00u8, 0x0fu8, 0x85u8, 0x82u8, 0x00u8, 0x00u8, 0x00u8,
Expand All @@ -55,13 +55,13 @@ pub const NO_SEARCH_LOCKING_DATA: [(usize, [u8; 18usize], [u8; 18usize]); 3usize
];

pub const CHTHONIA_FILTER_DATA: (usize, [u8; 7usize], [u8; 7usize]) = (
0x3ea749usize,
0x3ea759usize,
[0xb8u8, 0x07u8, 0x00u8, 0x00u8, 0x00u8, 0x66u8, 0x90u8],
[0x41u8, 0x8bu8, 0x41u8, 0x08u8, 0x4du8, 0x8bu8, 0xd1u8],
);

pub const ACCURATE_TEMP_FILTER_DATA: (usize, [u8; 1usize], [u8; 1usize]) =
(0x3ea84busize, [0x48u8], [0x4cu8]);
(0x3ea85busize, [0x48u8], [0x4cu8]);

type Opcodes = Vec<(usize, Vec<u8>, Vec<u8>)>;

Expand Down Expand Up @@ -147,19 +147,19 @@ impl CompactPatch {
pub struct NoMaxSearchRadius();

impl NoMaxSearchRadius {
const NMSR_DATA_OLD: (usize, u8, u8) = (0x3eb30eusize, 0xebu8, 0x74u8);
const NMSR_DATA_OLD: (usize, u8, u8) = (0x3eb31eusize, 0xebu8, 0x74u8);
const NMSR_DATA_NEW: [(usize, [u8; 8usize], [u8; 8usize]); 2usize] = [
(
0x3eb318usize,
0x3eb328usize,
[
0x66u8, 0x0fu8, 0x2fu8, 0x05u8, 0xe8u8, 0x51u8, 0xa1u8, 0xffu8,
0x66u8, 0x0fu8, 0x2fu8, 0x05u8, 0xd8u8, 0x51u8, 0xa1u8, 0xffu8,
],
[
0x66u8, 0x0fu8, 0x2fu8, 0x05u8, 0x20u8, 0x0au8, 0x2bu8, 0x00u8,
0x66u8, 0x0fu8, 0x2fu8, 0x05u8, 0xf0u8, 0x01u8, 0x2bu8, 0x00u8,
],
),
(
0x3eb324usize,
0x3eb334usize,
// We don't need this
[0x00u8; 8usize],
[
Expand Down Expand Up @@ -307,27 +307,27 @@ pub struct EsiFilter();

impl EsiFilter {
pub const ESI_FILTER_DATA_0: (usize, [u8; 6usize], [u8; 6usize]) = (
0x3ea863usize,
[0xe9u8, 0x98u8, 0x57u8, 0xa1u8, 0xffu8, 0x90u8],
0x3ea873usize,
[0xe9u8, 0x88u8, 0x57u8, 0xa1u8, 0xffu8, 0x90u8],
[0x41u8, 0x8bu8, 0x01u8, 0x83u8, 0xf8u8, 0x07u8],
);

pub const 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cu8, 0x8bu8, 0x05u8, 0x3fu8, 0x0eu8, 0x00u8, 0x00u8, 0x4cu8, 0x8bu8, 0x0du8,
0x40u8, 0x0eu8, 0x00u8, 0x00u8, 0x4cu8, 0x8bu8, 0x15u8, 0x41u8, 0x0eu8, 0x00u8, 0x00u8,
0x4cu8, 0x8bu8, 0x25u8, 0x42u8, 0x0eu8, 0x00u8, 0x00u8, 0xf3u8, 0x0fu8, 0x10u8, 0x05u8,
0x02u8, 0x03u8, 0x00u8, 0x00u8, 0x0fu8, 0x2fu8, 0xc2u8, 0x0fu8, 0x87u8, 0x52u8, 0xaau8,
0x02u8, 0x03u8, 0x00u8, 0x00u8, 0x0fu8, 0x2fu8, 0xc2u8, 0x0fu8, 0x87u8, 0x62u8, 0xaau8,
0x5eu8, 0x00u8, 0x0fu8, 0x2fu8, 0x15u8, 0xf6u8, 0x02u8, 0x00u8, 0x00u8, 0x0fu8, 0x87u8,
0x45u8, 0xaau8, 0x5eu8, 0x00u8, 0x41u8, 0x8bu8, 0x01u8, 0x83u8, 0xf8u8, 0x07u8, 0xe9u8,
0x4au8, 0xa6u8, 0x5eu8, 0x00u8,
0x55u8, 0xaau8, 0x5eu8, 0x00u8, 0x41u8, 0x8bu8, 0x01u8, 0x83u8, 0xf8u8, 0x07u8, 0xe9u8,
0x5au8, 0xa6u8, 0x5eu8, 0x00u8,
];

pub fn new(handler: &Handler) -> Self {
Expand Down

0 comments on commit 95116ca

Please sign in to comment.