-
Notifications
You must be signed in to change notification settings - Fork 1
/
Tweak.xm
47 lines (38 loc) · 1.25 KB
/
Tweak.xm
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
/**************************************************************
**************************************************************
* Real Racing Mods
* Includes: Lots of money, lots of coins, high rank
* All tracks unlocked, All tiers unlocked
* Just comment out any hacks you don't want to compile
* *********************Created by razzile*********************
**************************************************************/
#include <substrate.h>
int GetMoney()
{
return 99999999;
}
int GetCurrency()
{
return 99999999;
}
int GetXP()
{
return 99999999;
}
bool IsTrackUnlocked()
{
return true;
}
bool IsTierUnlocked()
{
return true;
}
%ctor
{
/* comment out any hacks you don't want */
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZNK10Characters5Money9GetAmountEv")),(void*)GetMoney, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZNK10Characters8Currency9GetAmountEv")),(void*)GetCurrency, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZNK10Characters2XP9GetAmountEv")),(void*)GetXP, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZNK10Characters10TrackStats15IsTrackUnlockedEi")),(void*)IsTrackUnlocked, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZNK10Characters14CareerProgress14IsTierUnlockedEi")),(void*)IsTierUnlocked, NULL);
}