Skip to content

Commit

Permalink
3.0.1.patch.1
Browse files Browse the repository at this point in the history
update to 0.990.44.1930
  • Loading branch information
Centri3 committed Nov 28, 2022
1 parent dde725a commit 50a1351
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions src/handler.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPAGHETTI ALERT. This should never panic but HOLY SHIT IS IT UGLY. Scroll down if you dare.
// 11/28/2022 update: I hate myself

use std::mem;
use sysinfo::{PidExt, ProcessExt, System, SystemExt};
Expand All @@ -8,18 +9,18 @@ use windows::Win32::{
};

const VERSION_DATA: [u8; 64usize] = [
0xf3u8, 0x0fu8, 0x10u8, 0x87u8, 0xccu8, 0x17u8, 0x00u8, 0x00u8, 0xf2u8, 0x0fu8, 0x59u8, 0xcbu8,
0x0fu8, 0x5au8, 0xc0u8, 0xf2u8, 0x0fu8, 0x5cu8, 0xd1u8, 0xf2u8, 0x0fu8, 0x58u8, 0xd0u8, 0xf2u8,
0x0fu8, 0x11u8, 0x53u8, 0x28u8, 0xf3u8, 0x0fu8, 0x10u8, 0x8fu8, 0x10u8, 0x11u8, 0x00u8, 0x00u8,
0xf2u8, 0x0fu8, 0x10u8, 0x06u8, 0x0fu8, 0x5au8, 0xc9u8, 0xf2u8, 0x0fu8, 0x59u8, 0xcbu8, 0xf2u8,
0x0fu8, 0x5cu8, 0xc1u8, 0xf2u8, 0x0fu8, 0x11u8, 0x43u8, 0x20u8, 0x0fu8, 0x28u8, 0x74u8, 0x24u8,
0x40u8, 0x48u8, 0x8bu8, 0x5cu8,
0x8du8, 0xb7u8, 0xffu8, 0x4cu8, 0x89u8, 0x6cu8, 0x24u8, 0x78u8, 0xbau8, 0x07u8, 0x00u8, 0x00u8,
0x00u8, 0x48u8, 0x89u8, 0x55u8, 0x80u8, 0x66u8, 0x44u8, 0x89u8, 0x6cu8, 0x24u8, 0x68u8, 0x4cu8,
0x89u8, 0x6cu8, 0x24u8, 0x58u8, 0x48u8, 0x89u8, 0x54u8, 0x24u8, 0x60u8, 0x66u8, 0x44u8, 0x89u8,
0x6cu8, 0x24u8, 0x48u8, 0x32u8, 0xc0u8, 0x45u8, 0x8bu8, 0xf5u8, 0x4cu8, 0x8du8, 0x7du8, 0x90u8,
0x48u8, 0x8du8, 0x75u8, 0xa0u8, 0x48u8, 0x83u8, 0x3eu8, 0x00u8, 0x0fu8, 0x84u8, 0x54u8, 0x01u8,
0x00u8, 0x00u8, 0x44u8, 0x3bu8,
];

// 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] = [
(
0x3e62c6usize,
0x3e7c26usize,
[
0x0fu8, 0xb6u8, 0x8bu8, 0x41u8, 0x66u8, 0x02u8, 0x00u8, 0x8bu8, 0xc7u8, 0x83u8, 0xf9u8,
0x01u8, 0x0fu8, 0x1fu8, 0x00u8, 0xbau8, 0x04u8, 0x00u8,
Expand All @@ -30,7 +31,7 @@ pub const NO_SEARCH_LOCKING_DATA: [(usize, [u8; 18usize], [u8; 18usize]); 3usize
],
),
(
0x3e98eausize,
0x3eb24ausize,
[
0x0fu8, 0xb6u8, 0xfau8, 0x48u8, 0x8bu8, 0xd9u8, 0x80u8, 0xb9u8, 0x41u8, 0x66u8, 0x02u8,
0x00u8, 0x01u8, 0x0fu8, 0x1fu8, 0x44u8, 0x00u8, 0x00u8,
Expand All @@ -41,7 +42,7 @@ pub const NO_SEARCH_LOCKING_DATA: [(usize, [u8; 18usize], [u8; 18usize]); 3usize
],
),
(
0x3e9b12usize,
0x3eb472usize,
[
0x80u8, 0xb9u8, 0x41u8, 0x66u8, 0x02u8, 0x00u8, 0x01u8, 0x0fu8, 0x1fu8, 0x44u8, 0x00u8,
0x00u8, 0x0fu8, 0x85u8, 0x82u8, 0x00u8, 0x00u8, 0x00u8,
Expand All @@ -54,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]) = (
0x3e8d99usize,
0x3ea6f9usize,
[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]) =
(0x3e8e9busize, [0x48u8], [0x4cu8]);
(0x3ea7fbusize, [0x48u8], [0x4cu8]);

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

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

impl NoMaxSearchRadius {
const NMSR_DATA_OLD: (usize, u8, u8) = (0x3e995eusize, 0xebu8, 0x74u8);
const NMSR_DATA_OLD: (usize, u8, u8) = (0x3eb2beusize, 0xebu8, 0x74u8);
const NMSR_DATA_NEW: [(usize, [u8; 8usize], [u8; 8usize]); 2usize] = [
(
0x3e9968usize,
0x3eb2c8usize,
[
0x66u8, 0x0fu8, 0x2fu8, 0x05u8, 0x98u8, 0x6bu8, 0xa1u8, 0xffu8,
0x66u8, 0x0fu8, 0x2fu8, 0x05u8, 0x38u8, 0x52u8, 0xa1u8, 0xffu8,
],
[
0x66u8, 0x0fu8, 0x2fu8, 0x05u8, 0x20u8, 0x0au8, 0x2bu8, 0x00u8,
],
),
(
0x3e9974usize,
0x3eb2d4usize,
// We don't need this
[0x00u8; 8usize],
[
Expand Down Expand Up @@ -306,8 +307,8 @@ pub struct EsiFilter();

impl EsiFilter {
pub const ESI_FILTER_DATA_0: (usize, [u8; 6usize], [u8; 6usize]) = (
0x3e8eb3usize,
[0xe9u8, 0x48u8, 0x71u8, 0xa1u8, 0xffu8, 0x90u8],
0x3ea813usize,
[0xe9u8, 0xe8u8, 0x57u8, 0xa1u8, 0xffu8, 0x90u8],
[0x41u8, 0x8bu8, 0x01u8, 0x83u8, 0xf8u8, 0x07u8],
);

Expand Down

0 comments on commit 50a1351

Please sign in to comment.