mirror of
https://github.com/Ragora/T2-CPP.git
synced 2026-03-30 17:45:02 +00:00
Merge Bahke's latest changes in
This commit is contained in:
parent
752155db59
commit
bdca76020c
10 changed files with 351 additions and 53 deletions
|
|
@ -19,6 +19,20 @@
|
|||
|
||||
namespace DX
|
||||
{
|
||||
const char * StringTableInsert(const char * str,bool casesensitive) {
|
||||
const char* retval;
|
||||
unsigned int * StringTablePtr=(unsigned int *)0x9e618c;
|
||||
unsigned int StrTableAddr=*StringTablePtr;
|
||||
__asm {
|
||||
mov ecx,StrTableAddr
|
||||
push casesensitive
|
||||
push str
|
||||
mov eax,0x441A00
|
||||
call eax
|
||||
mov retval,eax
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
bool memPatch(unsigned int addr, unsigned char * data, unsigned int size){
|
||||
DWORD oldprotect=0;
|
||||
DWORD oldnewprotect=0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue