Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
enginelesscc committed Oct 30, 2022
1 parent 8472d6a commit 595f6b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .yarnrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
disturl "https://electronjs.org/headers"
target "22.0.0-beta.1"
target "22.0.0-beta.2"
runtime "electron"
build_from_source "true"
2 changes: 1 addition & 1 deletion extensions/cpptools-patch/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function GetCppToolsPath() {
}

async function GetOffset(fullpath: string): Promise<number> {
const pattern = '48 8B C4 48 89 58 08 48 89 70 18 48 89 78 20 55 41 54 41 55 41 56 41 57 48 8D A8 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 45 33 F6 4C 89 74 24 ? 4C 89 74 24 ? 45 8D 66 0F 4C 89 64 24 ? 44 88 74 24 ? 49 83 CF FF 49 8B DF 48 FF C3 44 38 34 1A 75 F7 48 8D 4C 24 ? 49 3B DC 77 14 48 89 5C 24 ? 4C 8B C3 E8 ? ? ? ? 44 88 74 1C ? EB 0C 4C 8B CA 48 8B D3 E8 ? ? ? ? 90 41 BD ? ? ? ? 48 8B 54 24 ? 48 8B 4C 24 ? 48 83 7C 24 ? ? 0F 82 ? ? ? ? 4C 89 B5 ? ? ? ? 4D 8B C6 48 8D 44 24 ? 48 83 FA 10 48 0F 43 C1';
const pattern = '48 8B C4 48 89 58 08 48 89 70 18 48 89 78 20 55 41 54 41 55 41 56 41 57 48 8D A8';
let matchOffset = -1;
let idx = 0;
let offset = 0;
Expand Down

0 comments on commit 595f6b5

Please sign in to comment.