-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathHooking.h
More file actions
49 lines (38 loc) · 1.24 KB
/
Copy pathHooking.h
File metadata and controls
49 lines (38 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef _HOOKING_H
#define _HOOKING_H
#include <xtl.h>
#include <xboxmath.h>
#include <xbox.h>
#include <stdio.h>
void CreateDirectoryB(char * name);
extern char MasterCharBuffer[0x8000];
extern char theAssetBuffer[0x8000];
extern bool usingAssetBuffer;
extern int runningID;
char * va( char *format,...);
//Contains any global definitions and hooking functions
//The following externs are used in patching PPC
extern int returnFalse,
returnTrue,
liR40,
liR50,
liR60,
liR70,
liR90,
BLR,
NOP;
extern bool thisIsTrue, thisIsFalse;
extern short alwaysBranchPatch;
void patchBO2BootXEXOnDev();
DWORD WINAPI BlackOps2Loop(LPVOID);
char *improved_strtok(char *buf, const char *delim);
char *improved_strtok2(char *buf, const char *delim);
extern HANDLE thisApplication;
VOID DoPatches( PDWORD pBuffer, DWORD dwLength );
void patchMemory(DWORD addr, DWORD sourceAddr, int size);
DWORD WriteMemory(LPVOID address, DWORD size, LPCVOID data, HRESULT * optionalOutput = 0);
char * ConvertAssetNameToFileName(const char * assetName);
char * ConvertAssetNameToFileName(char * assetName);
char * ConvertAssetNameToFileName(char * assetName, char * outputBuff);
#define offsetof(s,m) (size_t)&reinterpret_cast<const volatile char&>((((s *)0)->m))
#endif