-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMultiSave.txt
65 lines (61 loc) · 1.2 KB
/
MultiSave.txt
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{$CLEO}
05E5: 1@ = game_version
if
1@ == 0
then
1@ = 0x6D8C92
else
if
1@ == 1
then
1@ = 0x6D8C6A
else
05DC: end_custom_thread
end
end
while true
wait 0
if
0@ == 0
then
if and
$ONMISSION == 0
8449: not actor $PLAYER_ACTOR in_a_car
then
gosub @ACTIVATE_SAVEENTRY
end
else
if or
$ONMISSION <> 0
0449: actor $PLAYER_ACTOR in_a_car
then
gosub @DEACTIVATE_SAVEENTRY
end
end
end
:ACTIVATE_SAVEENTRY
0085: 2@ = 1@
05df: write_memory 2@ size 2 value 4 virtual_protect 0
//FET_
2@ += 2
05df: write_memory 2@ size 4 value 0x5f544546 virtual_protect 0
//SG
2@ += 4
05df: write_memory 2@ size 4 value 0x4753 virtual_protect 0
2@ += 5
05df: write_memory 2@ size 1 value 15 virtual_protect 0
0@ = 1
return
:DEACTIVATE_SAVEENTRY
0085: 2@ = 1@
05df: write_memory 2@ size 2 value 34 virtual_protect 0
//FEDS
2@ += 2
05df: write_memory 2@ size 4 value 0x53444546 virtual_protect 0
//_TB
2@ += 4
05df: write_memory 2@ size 4 value 0x42545F virtual_protect 0
2@ += 5
05df: write_memory 2@ size 1 value 0 virtual_protect 0
0@ = 0
return