Skip to content

Commit 92a92d9

Browse files
committed
Update README.md
1 parent 7b27c3a commit 92a92d9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ByteWeaver/src/MemoryManager.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ void MemoryManager::AddPatch(const std::string& key, std::shared_ptr<Patch> hPat
3131
old = it->second; // keep old to restore after unlock
3232
Patches.erase(it);
3333
}
34-
AddressDB::AddWithKnownAddress("lua_gettop", L"lua514.dll", 0x12345678);
35-
3634
Patches.emplace(key, std::move(hPatch));
3735
} // unlock
3836
if (old) old->Restore();

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ include(FetchContent)
2323
FetchContent_Declare(
2424
ByteWeaver
2525
GIT_REPOSITORY https://github.com/0xKate/ByteWeaver.git
26-
GIT_TAG 0.3.21
26+
GIT_TAG 0.4.30
2727
)
2828
FetchContent_MakeAvailable(ByteWeaver)
2929
@@ -51,6 +51,8 @@ target_link_libraries(YOUR_PROJECT PRIVATE
5151
5252
#### Use DetourMacros.hpp to quickly setup hooks.
5353
~~~c++
54+
#include <DetourMacros.hpp>
55+
5456
// Example hook of a __cdecl function.
5557
DECLARE_HOOK(SomeFunc1, int, __cdecl, __cdecl, int a, int b, int c);
5658
INSTALL_HOOK_ADDRESS(SomeFunc1, 0x1234);
@@ -63,6 +65,7 @@ void MemoryManager::ApplyByKey("SomeThisCallFunc1");
6365
6466
// Example using symbols (funcname, modulename)
6567
DECLARE_HOOK_THISCALL(SomeThisCallFunc1, int, __fastcall, int a, int b, int c);
68+
AddressDB::Add("SomeFunction", L"SomeModule.dll"); // Uses GetProcAddress to find the symbol.
6669
AddressDB::AddWithScanPattern("SomeFunction", L"SomeModule.dll", "E9,00,00,00,00"); // Scan pattern.
6770
AddressDB::AddWithKnownOffset("SomeFunction", L"SomeModule.dll", 0x00001234); // Offset from module base.
6871
AddressDB::AddWithKnownAddress("SomeFunction", L"SomeModule.dll", 0x12345678); // Static address.

0 commit comments

Comments
 (0)